Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
  • Loading branch information
pearu and melissawm committed Sep 1, 2021
1 parent 5cec4ad commit f42cc06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/source/f2py/advanced.rst
Expand Up @@ -140,7 +140,7 @@ In the following example:
.. include:: asterisk2.f90
:literal:

the lenght of output assumed length string depends on an input
the length of output assumed length string depends on an input
argument ``n``, after wrapping with F2PY, in Python:

.. include:: asterisk2_session.dat
Expand Down
4 changes: 2 additions & 2 deletions numpy/f2py/src/fortranobject.c
Expand Up @@ -761,7 +761,7 @@ ndarray_from_pyobj(const int type_num,
* - shape is defined by dims and rank
*
* ndarray_from_pyobj is used to convert Python object arguments
* to numpy ndarrays with given type and shape that data is passed
* to numpy ndarrays with type and shape given by the data passed
* to interfaced Fortran or C functions.
*
* errmess (if not NULL), contains a prefix of an error message
Expand All @@ -782,7 +782,7 @@ ndarray_from_pyobj(const int type_num,
* dtype('S<width>'). In addition, there is also dtype('c'), that
* appears as dtype('S1') (these have the same type_num value),
* but is actually different (.char attribute is either 'S' or
* 'c', respecitely).
* 'c', respectively).
*
* In Fortran, character arrays and strings are different
* concepts. The relation between Fortran types, NumPy dtypes,
Expand Down

0 comments on commit f42cc06

Please sign in to comment.