From f42cc068ff6d5cfb94e3179b78d92febb188d0a8 Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Wed, 1 Sep 2021 12:12:15 +0300 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Melissa Weber Mendonça --- doc/source/f2py/advanced.rst | 2 +- numpy/f2py/src/fortranobject.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/f2py/advanced.rst b/doc/source/f2py/advanced.rst index 391976d94acc..2a8494f9d9c4 100644 --- a/doc/source/f2py/advanced.rst +++ b/doc/source/f2py/advanced.rst @@ -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 diff --git a/numpy/f2py/src/fortranobject.c b/numpy/f2py/src/fortranobject.c index 4e4b9bf1d6a1..840811bdbb7a 100644 --- a/numpy/f2py/src/fortranobject.c +++ b/numpy/f2py/src/fortranobject.c @@ -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 @@ -782,7 +782,7 @@ ndarray_from_pyobj(const int type_num, * dtype('S'). 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,