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