From 0631dab4490e4e53aa045261d88158d95ec9e420 Mon Sep 17 00:00:00 2001 From: Matthew Davis <7035647+mdavis-xyz@users.noreply.github.com> Date: Wed, 3 Nov 2021 09:51:56 +1100 Subject: [PATCH] [mdavis-xyz] #89 Fix typos in slicing tutorial Fixes #89 --- documentation/tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/tutorial.rst b/documentation/tutorial.rst index 4142bde..a57f03e 100644 --- a/documentation/tutorial.rst +++ b/documentation/tutorial.rst @@ -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] @@ -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