[pypy-commit] cffi default: update doc

arigo noreply at buildbot.pypy.org
Fri Aug 3 16:53:17 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r765:db7d8ad4631f
Date: 2012-08-03 16:52 +0200
http://bitbucket.org/cffi/cffi/changeset/db7d8ad4631f/

Log:	update doc

diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -194,7 +194,7 @@
         it as a string or unicode string.
 
         If 'cdata' is an enum, returns the value of the enumerator as a
-        string, or "#value" if the value is out of range.
+        string, or "#NUMBER" if the value is out of range.
         """
         return self._backend.string(cdata, maxlen)
 
diff --git a/doc/source/index.rst b/doc/source/index.rst
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -854,7 +854,7 @@
   wchar_t may require a Python unicode string of length 2.)
 
 - If 'cdata' is an enum, returns the value of the enumerator as a
-  string, or ``#value`` if the value is out of range.
+  string, or ``#NUMBER`` if the value is out of range.
 
 ``ffi.buffer(pointer, [size])``: return a read-write buffer object that
 references the raw C data pointed to by the given 'cdata', of 'size'


More information about the pypy-commit mailing list