diff options
Diffstat (limited to 'src/doc/trpl/patterns.md')
| -rw-r--r-- | src/doc/trpl/patterns.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/patterns.md b/src/doc/trpl/patterns.md index 122cffe3697..9e82e48fd18 100644 --- a/src/doc/trpl/patterns.md +++ b/src/doc/trpl/patterns.md @@ -180,7 +180,7 @@ If you want to match against a slice or array, you can use `&`: fn main() { let v = vec!["match_this", "1"]; - match &v[] { + match &v[..] { ["match_this", second] => println!("The second element is {}", second), _ => {}, } |
