Skip to content

Commit

Permalink
[mdavis-xyz] #89 Fix typos in slicing tutorial
Browse files Browse the repository at this point in the history
Fixes #89
  • Loading branch information
mdavis-xyz authored and springcomp committed Feb 18, 2022
1 parent d781b80 commit 0631dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ we can use this expression:

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

The two example above can be shortened. If the ``start`` or ``step`` value is
The two example above can be shortened. If the ``start`` or ``stop`` value is
omitted it is assumed to be the start or the end of the array. For example:

.. jpexample:: [:5]
Expand All @@ -109,7 +109,7 @@ omitted it is assumed to be the start or the end of the array. For example:

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

Try modifying changing the example above to only include the last half of the
Try modifying the example above to only include the last half of the
array elements without specifying the end value of ``10``.

The general form of a slice is ``[start:stop:step]``. So far we've looked
Expand Down

0 comments on commit 0631dab

Please sign in to comment.