Skip to content

Commit 068e8df

Browse files
authored
Rollup merge of rust-lang#67929 - mgrachev:patch-1, r=jonas-schievink
Formatting an example for method Vec.retain
2 parents 95a910f + e6d95ce commit 068e8df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ impl<T> Vec<T> {
10541054
///
10551055
/// ```
10561056
/// let mut vec = vec![1, 2, 3, 4];
1057-
/// vec.retain(|&x| x%2 == 0);
1057+
/// vec.retain(|&x| x % 2 == 0);
10581058
/// assert_eq!(vec, [2, 4]);
10591059
/// ```
10601060
///

0 commit comments

Comments
 (0)