Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f42cc06

Browse files
pearumelissawm
andauthored
Apply suggestions from code review
Co-authored-by: Melissa Weber Mendonça <[email protected]>
1 parent 5cec4ad commit f42cc06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/f2py/advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ In the following example:
140140
.. include:: asterisk2.f90
141141
:literal:
142142

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

146146
.. include:: asterisk2_session.dat

numpy/f2py/src/fortranobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ ndarray_from_pyobj(const int type_num,
761761
* - shape is defined by dims and rank
762762
*
763763
* ndarray_from_pyobj is used to convert Python object arguments
764-
* to numpy ndarrays with given type and shape that data is passed
764+
* to numpy ndarrays with type and shape given by the data passed
765765
* to interfaced Fortran or C functions.
766766
*
767767
* errmess (if not NULL), contains a prefix of an error message
@@ -782,7 +782,7 @@ ndarray_from_pyobj(const int type_num,
782782
* dtype('S<width>'). In addition, there is also dtype('c'), that
783783
* appears as dtype('S1') (these have the same type_num value),
784784
* but is actually different (.char attribute is either 'S' or
785-
* 'c', respecitely).
785+
* 'c', respectively).
786786
*
787787
* In Fortran, character arrays and strings are different
788788
* concepts. The relation between Fortran types, NumPy dtypes,

0 commit comments

Comments
 (0)