[pypy-commit] cffi default: typo

arigo noreply at buildbot.pypy.org
Fri May 22 19:18:34 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2089:5e5d1fe207c8
Date: 2015-05-22 19:19 +0200
http://bitbucket.org/cffi/cffi/changeset/5e5d1fe207c8/

Log:	typo

diff --git a/doc/source/overview.rst b/doc/source/overview.rst
--- a/doc/source/overview.rst
+++ b/doc/source/overview.rst
@@ -35,6 +35,8 @@
     >>> arg = ffi.new("char[]", "world")         # equivalent to C code: char arg[] = "world";
     >>> C.printf("hi there, %s!\n", arg)         # call printf
     hi there, world!
+    17                                           # this is the return value
+    >>>
 
 Note that on Python 3 you need to pass byte strings to ``char *``
 arguments.  In the above example it would be ``b"world"`` and ``b"hi
@@ -120,7 +122,7 @@
         """,
         libraries=[])   # or a list of libraries to link with
 
-   ffi.cdef("""     // some declarations from the man page
+    ffi.cdef("""     // some declarations from the man page
         struct passwd {
             char *pw_name;
             ...;     // literally dot-dot-dot


More information about the pypy-commit mailing list