Skip to content

Commit 2c25ad5

Browse files
authored
Rollup merge of #67929 - mgrachev:patch-1, r=jonas-schievink
Formatting an example for method Vec.retain
2 parents 318d6c2 + e6d95ce commit 2c25ad5

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)