[pypy-commit] cffi default: typos

arigo pypy.commits at gmail.com
Mon Dec 12 06:30:51 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2834:dc847ec359cc
Date: 2016-12-12 12:30 +0100
http://bitbucket.org/cffi/cffi/changeset/dc847ec359cc/

Log:	typos

diff --git a/doc/source/ref.rst b/doc/source/ref.rst
--- a/doc/source/ref.rst
+++ b/doc/source/ref.rst
@@ -263,7 +263,7 @@
 
 For ``array = ffi.new("T[]", n)``, then ``ffi.sizeof(array)`` returns
 ``n * ffi.sizeof("T")``.  *New in version 1.9:* Similar rules apply for
-structures with aa variable-sized array at the end.  More precisely, if
+structures with a variable-sized array at the end.  More precisely, if
 ``p`` was returned by ``ffi.new("struct foo *", ...)``, then
 ``ffi.sizeof(p[0])`` now returns the total allocated size.  In previous
 versions, it used to just return ``ffi.sizeof(ffi.typeof(p[0]))``, which
@@ -481,7 +481,7 @@
 memory where the initial content can be left uninitialized, you can do::
 
     # at module level
-    new_nonzero = ffi.new_allocator(should_clear_after_alloc)
+    new_nonzero = ffi.new_allocator(should_clear_after_alloc=False)
 
     # then replace `p = ffi.new("char[]", bigsize)` with:
         p = new_nonzero("char[]", bigsize)


More information about the pypy-commit mailing list