Skip to content

Commit

Permalink
Formatting an example for method Vec.retain
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrachev committed Jan 6, 2020
1 parent 33640f0 commit e6d95ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ impl<T> Vec<T> {
///
/// ```
/// let mut vec = vec![1, 2, 3, 4];
/// vec.retain(|&x| x%2 == 0);
/// vec.retain(|&x| x % 2 == 0);
/// assert_eq!(vec, [2, 4]);
/// ```
///
Expand Down

0 comments on commit e6d95ce

Please sign in to comment.