summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorValentin Haenel <valentin.haenel@gmx.de>2013-02-01 23:55:32 +0100
committerValentin Haenel <valentin.haenel@gmx.de>2013-02-01 23:55:34 +0100
commit9118887ccb0e62d8814e31a80e1e6caf0e99eb3c (patch)
treed513b9449c9687bfaaf03a0a638cb5189c7fcc00 /numpy
parent4600b2fe1d7ebafef98858572b603f2a8d19db4d (diff)
downloadnumpy-9118887ccb0e62d8814e31a80e1e6caf0e99eb3c.tar.gz
DOC/FIX: fix example in ctypeslib module documentation
Fix some inconsistencies in the example. The library is loaded as '_lib' not 'lib' in the rest of the example. Also, the function is called 'foo_func' not 'foo'
Diffstat (limited to 'numpy')
-rw-r--r--numpy/ctypeslib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ctypeslib.py b/numpy/ctypeslib.py
index 367b08f49..c11900947 100644
--- a/numpy/ctypeslib.py
+++ b/numpy/ctypeslib.py
@@ -40,8 +40,8 @@ in-place. For example::
We wrap it using:
->>> lib.foo_func.restype = None #doctest: +SKIP
->>> lib.foo.argtypes = [array_1d_double, c_int] #doctest: +SKIP
+>>> _lib.foo_func.restype = None #doctest: +SKIP
+>>> _lib.foo_func.argtypes = [array_1d_double, c_int] #doctest: +SKIP
Then, we're ready to call ``foo_func``: