summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabrieldemarmiesse <gabriel.demarmiesse@teraki.com>2018-06-22 20:47:27 +0200
committergabrieldemarmiesse <gabriel.demarmiesse@teraki.com>2018-06-22 20:47:27 +0200
commit79f88002a022d4dda005d49e0c92afe927fa793a (patch)
tree20b2fff646e54ba9b286eecc496f203bacce0f77
parentd5e107a9e0fd5180447cdad2da09423bcf5d1d87 (diff)
downloadcython-79f88002a022d4dda005d49e0c92afe927fa793a.tar.gz
Changed a comment to make it more meaningful.
-rw-r--r--docs/examples/tutorial/clibraries/queue3.pyx2
-rw-r--r--docs/src/tutorial/clibraries.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/tutorial/clibraries/queue3.pyx b/docs/examples/tutorial/clibraries/queue3.pyx
index db316d395..38d26c6a4 100644
--- a/docs/examples/tutorial/clibraries/queue3.pyx
+++ b/docs/examples/tutorial/clibraries/queue3.pyx
@@ -39,7 +39,7 @@ cdef class Queue:
cdef extend_ints(self, int* values, size_t count):
cdef int value
- for value in values[:count]: # It is possible to slice pointers in Cython.
+ for value in values[:count]: # Slicing pointer to limit the iteration boundaries.
self.append(value)
cpdef int peek(self) except? -1:
diff --git a/docs/src/tutorial/clibraries.rst b/docs/src/tutorial/clibraries.rst
index 642546d0c..d0a23673d 100644
--- a/docs/src/tutorial/clibraries.rst
+++ b/docs/src/tutorial/clibraries.rst
@@ -343,7 +343,7 @@ Adding an ``extend()`` method should now be straight forward::
"""Append all ints to the queue.
"""
cdef int value
- for value in values[:count]: # It is possible to slice pointers in Cython.
+ for value in values[:count]: # Slicing pointer to limit the iteration boundaries.
self.append(value)
This becomes handy when reading values from a C array, for example.