Skip to content

Commit b1ea715

Browse files
authored
Correct "Slice bounds"
_end_ has to be larger than _start_ - if it's smaller and a valid index, then an empty string will be returned, not the final element of the string
1 parent 858046e commit b1ea715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_episodes/11-lists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ IndexError: string index out of range
322322
> >
323323
> > ~~~
324324
> > lithium
325-
> > m
325+
> > ''
326326
> > ~~~
327327
> > {: .output}
328328
> > There is no 20th index, so the entire string is captured.

0 commit comments

Comments
 (0)