Skip to content

Commit 1f572b0

Browse files
authored
Vec doc use elision as code rather than comment
1 parent 7148412 commit 1f572b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/alloc/src/vec.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ use crate::raw_vec::RawVec;
171171
///
172172
/// // ... and that's all!
173173
/// // you can also do it like this:
174-
/// let u: &[usize] = &v; // or &[_]
174+
/// let u: &[usize] = &v;
175+
/// // or like this:
176+
/// let u: &[_] = &v;
175177
/// ```
176178
///
177179
/// In Rust, it's more common to pass slices as arguments rather than vectors

0 commit comments

Comments
 (0)