Formatting an example for method Vec.retain

This commit is contained in:
Grachev Mikhail 2020-01-06 15:18:03 +03:00 committed by GitHub
parent 33640f0e03
commit e6d95ce0b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);
/// ```
///