Skip to content

Commit dc1a33a

Browse files
committed
Merge pull request #15831 from ethomag/patch-1
Update arrays.rst
2 parents 9ee9aef + e925ca9 commit dc1a33a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/manual/arrays.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Comprehensions can also be written without the enclosing square brackets, produc
222222
an object known as a generator. This object can be iterated to produce values on
223223
demand, instead of allocating an array and storing them in advance
224224
(see <man-interfaces-iteration>).
225-
For example, the following expression sums a series without allocating memory::
225+
For example, the following expression sums a series without allocating memory:
226226

227227
.. doctest::
228228

@@ -236,7 +236,7 @@ list, parentheses are needed to separate the generator from subsequent arguments
236236
ERROR: syntax: invalid iteration specification
237237

238238
All comma-separated expressions after ``for`` are interpreted as ranges. Adding
239-
parentheses lets us add a third argument to ``map``::
239+
parentheses lets us add a third argument to ``map``:
240240

241241
.. doctest::
242242

0 commit comments

Comments
 (0)