summaryrefslogtreecommitdiff
path: root/doc/example.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-10-17 11:16:57 +0300
committermattip <matti.picus@gmail.com>2019-10-17 19:31:06 +0300
commit0b474e3ee75d1086379e5f3e5cfc75594bbe56fc (patch)
treeec70241fcd646da7ec82fce8412df5c7fedbe033 /doc/example.py
parentf8b9ba9c971c32c04b26cf9356fcb652fa754064 (diff)
downloadnumpy-0b474e3ee75d1086379e5f3e5cfc75594bbe56fc.tar.gz
TST: run refguide-check on rst files in doc/*
Diffstat (limited to 'doc/example.py')
-rw-r--r--doc/example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/example.py b/doc/example.py
index 560775038..8a5f9948f 100644
--- a/doc/example.py
+++ b/doc/example.py
@@ -112,9 +112,9 @@ def foo(var1, var2, long_var_name='hi'):
use the function.
>>> a = [1, 2, 3]
- >>> print [x + 3 for x in a]
+ >>> print([x + 3 for x in a])
[4, 5, 6]
- >>> print "a\n\nb"
+ >>> print("a\n\nb")
a
b