Vec slice example fix style and show type elision
This commit is contained in:
parent
1dc748fb3d
commit
7148412100
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ use crate::raw_vec::RawVec;
|
||||||
///
|
///
|
||||||
/// // ... and that's all!
|
/// // ... and that's all!
|
||||||
/// // you can also do it like this:
|
/// // 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
|
/// In Rust, it's more common to pass slices as arguments rather than vectors
|
||||||
|
|
Loading…
Reference in a new issue