fix some typos in Doc/c-api/memoryview.rst

This commit is contained in:
Eli Bendersky 2011-11-25 15:07:50 +02:00
parent f27be5c60b
commit 5a53f368e6
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ any other object.
Create a memoryview object from an object that provides the buffer interface. Create a memoryview object from an object that provides the buffer interface.
If *obj* supports writable buffer exports, the memoryview object will be If *obj* supports writable buffer exports, the memoryview object will be
readable and writable, other it will be read-only. readable and writable, otherwise it will be read-only.
.. c:function:: PyObject *PyMemoryView_FromBuffer(Py_buffer *view) .. c:function:: PyObject *PyMemoryView_FromBuffer(Py_buffer *view)
@ -33,7 +33,7 @@ any other object.
Create a memoryview object to a contiguous chunk of memory (in either Create a memoryview object to a contiguous chunk of memory (in either
'C' or 'F'ortran *order*) from an object that defines the buffer 'C' or 'F'ortran *order*) from an object that defines the buffer
interface. If memory is contiguous, the memoryview object points to the interface. If memory is contiguous, the memoryview object points to the
original memory. Otherwise copy is made and the memoryview points to a original memory. Otherwise, a copy is made and the memoryview points to a
new bytes object. new bytes object.