1
Fork 0

Rollup merge of #67929 - mgrachev:patch-1, r=jonas-schievink

Formatting an example for method Vec.retain
This commit is contained in:
Yuki Okushi 2020-01-07 13:46:10 +09:00 committed by GitHub
commit 2c25ad5d28
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]);
/// ```
///