Skip to content

Commit

Permalink
Rollup merge of rust-lang#67929 - mgrachev:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
Formatting an example for method Vec.retain
  • Loading branch information
Dylan-DPC authored Jan 6, 2020
2 parents 95a910f + e6d95ce commit 068e8df
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 068e8df

Please sign in to comment.