mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #76062 - pickfire:patch-13, r=jyn514
Vec slice example fix style and show type elision
This commit is contained in:
commit
fd86705a20
@ -174,7 +174,9 @@ 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 like this:
|
||||||
|
/// let u: &[_] = &v;
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// 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 New Issue
Block a user