Skip to content

Commit

Permalink
Rollup merge of rust-lang#76062 - pickfire:patch-13, r=jyn514
Browse files Browse the repository at this point in the history
Vec slice example fix style and show type elision
  • Loading branch information
Dylan-DPC authored Sep 16, 2020
2 parents eeffc1c + 1f572b0 commit fe989e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/alloc/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ 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 like this:
/// let u: &[_] = &v;
/// ```
///
/// In Rust, it's more common to pass slices as arguments rather than vectors
Expand Down

0 comments on commit fe989e9

Please sign in to comment.