diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-01-07 13:46:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-07 13:46:10 +0900 |
| commit | 2c25ad5d28aaf105156ebbc111f42411f0447467 (patch) | |
| tree | 385145b8a68aed362dcb2067351ac4456518bea1 /src/liballoc | |
| parent | 318d6c259dd2a610ca70b89ca5a3ea073518a884 (diff) | |
| parent | e6d95ce0b88bddd9cbb54bd272ba7c48601ba7a0 (diff) | |
| download | rust-2c25ad5d28aaf105156ebbc111f42411f0447467.tar.gz rust-2c25ad5d28aaf105156ebbc111f42411f0447467.zip | |
Rollup merge of #67929 - mgrachev:patch-1, r=jonas-schievink
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 bc0cd6eff37..f5f8d88829f 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]); /// ``` /// |
