[Jython-checkins] jython: Fix typos in the buffer API docs.
jeff.allen
jython-checkins at python.org
Wed Sep 17 00:55:24 CEST 2014
http://hg.python.org/jython/rev/b7c5602a6f14
changeset: 7378:b7c5602a6f14
user: Jeff Allen <ja.py at farowl.co.uk>
date: Fri Aug 08 21:56:26 2014 +0100
summary:
Fix typos in the buffer API docs.
files:
src/org/python/core/PyBUF.java | 4 ++--
src/org/python/core/PyBuffer.java | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/org/python/core/PyBUF.java b/src/org/python/core/PyBUF.java
--- a/src/org/python/core/PyBUF.java
+++ b/src/org/python/core/PyBUF.java
@@ -218,8 +218,8 @@
/**
* A constant used by the consumer in its call to {@link BufferProtocol#getBuffer(int)} to
* specify that it expects to access the buffer contents directly as an array (rather than
- * through that the purely abstract part of the API). <code>getBuffer</code> will raise an
- * exception if the exporter cannot expose its storage as Java array.
+ * through the purely abstract part of the API). <code>getBuffer</code> will raise an exception
+ * if the exporter cannot expose its storage as Java array.
*/
static final int AS_ARRAY = 0x10000000;
diff --git a/src/org/python/core/PyBuffer.java b/src/org/python/core/PyBuffer.java
--- a/src/org/python/core/PyBuffer.java
+++ b/src/org/python/core/PyBuffer.java
@@ -273,11 +273,11 @@
//
/**
- * Determine whether the exporter is able to offer direct access the exported storage as a Java
- * byte array (through the API that involves class {@link Pointer}), or only supports the
+ * Determine whether the exporter is able to offer direct access to the exported storage as a
+ * Java byte array (through the API that involves class {@link Pointer}), or only supports the
* abstract API. See also {@link PyBUF#AS_ARRAY}.
*
- * @return true if array access is not allowed, false if it is.
+ * @return true if array access is supported, false if it is not.
*/
boolean hasArray();
--
Repository URL: http://hg.python.org/jython
More information about the Jython-checkins
mailing list