summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2021-08-22 11:05:59 +0300
committerGitHub <noreply@github.com>2021-08-22 11:05:59 +0300
commitaa5de070a15629e11439a46570ea22cdfa3dce21 (patch)
tree2f1dc7c10ba199afe2094934d53033809b393a88
parent5350aa0972a394afcda4ad6ecaca7690cbe5f702 (diff)
parentd9fba62d64bcbb574c6df415faf88765cdced842 (diff)
downloadnumpy-aa5de070a15629e11439a46570ea22cdfa3dce21.tar.gz
Merge pull request #19727 from phetdam/hotfix-19726
DOC: fix basics.creation.rst to address issue 19726
-rw-r--r--doc/source/user/basics.creation.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/user/basics.creation.rst b/doc/source/user/basics.creation.rst
index b6f46a783..b0b54d4ed 100644
--- a/doc/source/user/basics.creation.rst
+++ b/doc/source/user/basics.creation.rst
@@ -59,8 +59,8 @@ in overflow. This feature can often be misunderstood. If you
perform calculations with mismatching ``dtypes``, you can get unwanted
results, for example::
- >>> a = array([2, 3, 4], dtype = np.uint32)
- >>> b = array([5, 6, 7], dtype = np.uint32)
+ >>> a = np.array([2, 3, 4], dtype=np.uint32)
+ >>> b = np.array([5, 6, 7], dtype=np.uint32)
>>> c_unsigned32 = a - b
>>> print('unsigned c:', c_unsigned32, c_unsigned32.dtype)
unsigned c: [4294967293 4294967293 4294967293] uint32