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
JohnTitor authored Jan 7, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 318d6c2 + e6d95ce commit 2c25ad5
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
@@ -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]);
/// ```
///

0 comments on commit 2c25ad5

Please sign in to comment.