diff options
| author | Grachev Mikhail <work@mgrachev.com> | 2020-01-06 15:18:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-06 15:18:03 +0300 |
| commit | e6d95ce0b88bddd9cbb54bd272ba7c48601ba7a0 (patch) | |
| tree | 93d0cd7799957d5d2fde5bb831538e6c233c610e /src/liballoc | |
| parent | 33640f0e03af2fb31ce380d5389d5545f24ce29a (diff) | |
| download | rust-e6d95ce0b88bddd9cbb54bd272ba7c48601ba7a0.tar.gz rust-e6d95ce0b88bddd9cbb54bd272ba7c48601ba7a0.zip | |
Formatting an example for method Vec.retain
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 93a51ccb207..e3e6d950953 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -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]); /// ``` /// |
