Skip to content

Commit 702bad4

Browse files
committed
added a comma
1 parent 0ca365f commit 702bad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterns.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ match slice {
385385
["a", end @ ..] => println!("ends with: {:?}", end),
386386

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

390390
rest => println!("{:?}", rest),
391391
}

0 commit comments

Comments
 (0)