Skip to content

Commit c4514ca

Browse files
added a comma
1 parent 3b39c88 commit c4514ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterns.md

Lines changed: 1 addition & 1 deletion
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)