Skip to content

Commit 17e621b

Browse files
committed
slicing -> indexing
1 parent 12071f3 commit 17e621b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-panic-safe-slicing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
# Summary
77

8-
Add "panic-safe" or "total" alternatives to the existing panicking slicing syntax.
8+
Add "panic-safe" or "total" alternatives to the existing panicking indexing syntax.
99

1010
# Motivation
1111

1212
`SliceExt::get` and `SliceExt::get_mut` can be thought as non-panicking versions of the simple
13-
slicing syntax, `a[idx]`. However, there is no such equivalent for `a[start..end]`, `a[start..]`,
13+
indexing syntax, `a[idx]`. However, there is no such equivalent for `a[start..end]`, `a[start..]`,
1414
or `a[..end]`. This RFC proposes such methods to fill the gap.
1515

1616
# Detailed design

0 commit comments

Comments
 (0)