diff options
author | Chunlin <fangchunlin@huawei.com> | 2020-04-25 23:33:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 10:33:48 -0500 |
commit | 6ee49178517088966e63c2aedf6a8a5779ad5384 (patch) | |
tree | 8ea96ee9757724dfb590bf359a90cd2c75196331 /doc | |
parent | 6d6df47fefdc503fbcffd8cb14a5daaa956ef220 (diff) | |
download | numpy-6ee49178517088966e63c2aedf6a8a5779ad5384.tar.gz |
DOC: Add missing bracket (gh-16051)
Add missing closing brackets, script to generate the list in the PR gh-16051.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/DISTUTILS.rst.txt | 2 | ||||
-rw-r--r-- | doc/neps/nep-0010-new-iterator-ufunc.rst | 2 | ||||
-rw-r--r-- | doc/neps/nep-0012-missing-data.rst | 2 | ||||
-rw-r--r-- | doc/neps/nep-0028-website-redesign.rst | 2 | ||||
-rw-r--r-- | doc/neps/scope.rst | 2 | ||||
-rw-r--r-- | doc/source/dev/index.rst | 2 | ||||
-rw-r--r-- | doc/source/reference/c-api/array.rst | 2 | ||||
-rw-r--r-- | doc/source/user/tutorial-svd.rst | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/doc/DISTUTILS.rst.txt b/doc/DISTUTILS.rst.txt index 2957bb907..15073f754 100644 --- a/doc/DISTUTILS.rst.txt +++ b/doc/DISTUTILS.rst.txt @@ -345,7 +345,7 @@ expression, '<...>' will be replaced first with item1, and then with item2, and so forth until N repeats are accomplished. Once a named repeat specification has been introduced, the same repeat rule may be used **in the current block** by referring only to the name -(i.e. <rule1>. +(i.e. <rule1>). Short repeat rule diff --git a/doc/neps/nep-0010-new-iterator-ufunc.rst b/doc/neps/nep-0010-new-iterator-ufunc.rst index fd7b3e52c..7a2a272f4 100644 --- a/doc/neps/nep-0010-new-iterator-ufunc.rst +++ b/doc/neps/nep-0010-new-iterator-ufunc.rst @@ -1291,7 +1291,7 @@ Construction and Destruction Returns ``NPY_SUCCEED`` or ``NPY_FAIL``. -``int NpyIter_HasInnerLoop(NpyIter *iter`` +``int NpyIter_HasInnerLoop(NpyIter *iter)`` Returns 1 if the iterator handles the inner loop, or 0 if the caller needs to handle it. This is controlled diff --git a/doc/neps/nep-0012-missing-data.rst b/doc/neps/nep-0012-missing-data.rst index dbcf1b579..f59cf394f 100644 --- a/doc/neps/nep-0012-missing-data.rst +++ b/doc/neps/nep-0012-missing-data.rst @@ -313,7 +313,7 @@ The following works in the current draft implementation:: For floating point numbers, Inf and NaN are separate concepts from missing values. If a division by zero occurs in an array with default missing value support, an unmasked Inf or NaN will be produced. To -mask those values, a further 'a[np.logical_not(a.isfinite(a)] = np.NA' +mask those values, a further 'a[np.logical_not(a.isfinite(a))] = np.NA' can achieve that. For the bitpattern approach, the parameterized dtype('NA[f8,InfNan]') described in a later section can be used to get these semantics without the extra manipulation. diff --git a/doc/neps/nep-0028-website-redesign.rst b/doc/neps/nep-0028-website-redesign.rst index dcd182d55..022a1fdbb 100644 --- a/doc/neps/nep-0028-website-redesign.rst +++ b/doc/neps/nep-0028-website-redesign.rst @@ -131,7 +131,7 @@ Possible options for static site generators Unlike the previous options, Docusaurus doesn't come with themes, and thus we would not want to use this for our landing page. This is an excellent docs option written in React. Docusaurus natively has support for i18n (via - Crowdin_, document versioning, and document search. + Crowdin_), document versioning, and document search. Both Jekyll and Hugo are excellent options that should be supported into the future and are good choices for NumPy. Docusaurus has several bonus features diff --git a/doc/neps/scope.rst b/doc/neps/scope.rst index a675b8c96..61eab2ea6 100644 --- a/doc/neps/scope.rst +++ b/doc/neps/scope.rst @@ -35,7 +35,7 @@ Here, we describe aspects of N-d array computation that are within scope for Num - NumPy provides some **infrastructure for other packages in the scientific Python ecosystem**: - - numpy.distutils (build support for C++, Fortran, BLAS/LAPACK, and other relevant libraries for scientific computing + - numpy.distutils (build support for C++, Fortran, BLAS/LAPACK, and other relevant libraries for scientific computing) - f2py (generating bindings for Fortran code) - testing utilities diff --git a/doc/source/dev/index.rst b/doc/source/dev/index.rst index c3f880a35..dc6099992 100644 --- a/doc/source/dev/index.rst +++ b/doc/source/dev/index.rst @@ -84,7 +84,7 @@ Here's the short summary, complete TOC links are below: * Enter your GitHub username and password (repeat contributors or advanced users can remove this step by connecting to GitHub with - :ref:`SSH<set-up-and-configure-a-github-account>` . + :ref:`SSH<set-up-and-configure-a-github-account>`). * Go to GitHub. The new branch will show up with a green Pull Request button. Make sure the title and message are clear, concise, and self- diff --git a/doc/source/reference/c-api/array.rst b/doc/source/reference/c-api/array.rst index 22b15fc57..83289010b 100644 --- a/doc/source/reference/c-api/array.rst +++ b/doc/source/reference/c-api/array.rst @@ -3026,7 +3026,7 @@ Other conversions .. code-block:: c - #define error_converting(x) (((x) == -1) && PyErr_Occurred() + #define error_converting(x) (((x) == -1) && PyErr_Occurred()) .. c:function:: npy_intp PyArray_PyIntAsIntp(PyObject* op) diff --git a/doc/source/user/tutorial-svd.rst b/doc/source/user/tutorial-svd.rst index e1918f394..086e0a6de 100644 --- a/doc/source/user/tutorial-svd.rst +++ b/doc/source/user/tutorial-svd.rst @@ -455,7 +455,7 @@ and :include-source: 0 should give you an image indistinguishable from the original one (although we -may introduce floating point errors for this reconstruction. In fact, +may introduce floating point errors for this reconstruction). In fact, you might see a warning message saying `"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers)."` This is expected from the manipulation we just did on the original |