summaryrefslogtreecommitdiff
path: root/doc/example.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-11-23 07:40:59 -0800
committerGitHub <noreply@github.com>2019-11-23 07:40:59 -0800
commitd76efa771b4915f4e3f5aa2023bb50e46c41b4bc (patch)
treef3625f42df57393bf8e08a9f67658252a7dd33b8 /doc/example.py
parent2f2fa20b95d1da4ea11fb78a8071787d626b39a3 (diff)
parentdff3c1f90af9053128e6e241e1b5f19d858670f4 (diff)
downloadnumpy-d76efa771b4915f4e3f5aa2023bb50e46c41b4bc.tar.gz
Merge pull request #14732 from mattip/refguide-rst
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