Skip to content

Commit bc88063

Browse files
committed
Update unstable book wrt. subslice patterns.
1 parent 2e6e6a9 commit bc88063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/unstable-book/src/language-features/slice-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ matched against that pattern. For example:
1717
fn is_symmetric(list: &[u32]) -> bool {
1818
match list {
1919
&[] | &[_] => true,
20-
&[x, ref inside.., y] if x == y => is_symmetric(inside),
20+
&[x, ref inside @ .., y] if x == y => is_symmetric(inside),
2121
&[..] => false,
2222
}
2323
}

0 commit comments

Comments
 (0)