Skip to content

Commit

Permalink
Rollup merge of #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 9a04271 + e6d95ce commit 7c4b6c5
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 7c4b6c5

Please sign in to comment.