Skip to content

Commit

Permalink
added a comma
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDunn committed May 17, 2021
1 parent 0ca365f commit 702bad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ match slice {
["a", end @ ..] => println!("ends with: {:?}", end),

// 'whole' is the entire slice and `last` is the final element
whole @ [.., last] => println!("the last element of {:?} is {}", whole, last)
whole @ [.., last] => println!("the last element of {:?} is {}", whole, last),

rest => println!("{:?}", rest),
}
Expand Down

0 comments on commit 702bad4

Please sign in to comment.