Formatting an example for method Vec.retain
This commit is contained in:
parent
33640f0e03
commit
e6d95ce0b8
@ -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]);
|
||||
/// ```
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user