diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-08-29 18:57:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-29 18:57:49 +0800 |
| commit | 71484121001b69aefdc41fd7192b7095250517a7 (patch) | |
| tree | 178aa801d83dca952f92b9c099429cd6ea491177 | |
| parent | 1dc748fb3d2c54f536e6abd74f1ad34b3624f640 (diff) | |
| download | rust-71484121001b69aefdc41fd7192b7095250517a7.tar.gz rust-71484121001b69aefdc41fd7192b7095250517a7.zip | |
Vec slice example fix style and show type elision
| -rw-r--r-- | library/alloc/src/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index b4ad238680f..d39b6b701e6 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -171,7 +171,7 @@ use crate::raw_vec::RawVec; /// /// // ... and that's all! /// // you can also do it like this: -/// let x : &[usize] = &v; +/// let u: &[usize] = &v; // or &[_] /// ``` /// /// In Rust, it's more common to pass slices as arguments rather than vectors |
