about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-09-15 14:41:43 +0800
committerGitHub <noreply@github.com>2020-09-15 14:41:43 +0800
commit1f572b03492e7d3ce7156d00f9b44ccedf47bb50 (patch)
treec8c4e7e222efaa0924fe9669b0d268f9537a8248
parent71484121001b69aefdc41fd7192b7095250517a7 (diff)
downloadrust-1f572b03492e7d3ce7156d00f9b44ccedf47bb50.tar.gz
rust-1f572b03492e7d3ce7156d00f9b44ccedf47bb50.zip
Vec doc use elision as code rather than comment
-rw-r--r--library/alloc/src/vec.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index d39b6b701e6..f6807c4c5c3 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -171,7 +171,9 @@ use crate::raw_vec::RawVec;
 ///
 /// // ... and that's all!
 /// // you can also do it like this:
-/// let u: &[usize] = &v; // or &[_]
+/// let u: &[usize] = &v;
+/// // or like this:
+/// let u: &[_] = &v;
 /// ```
 ///
 /// In Rust, it's more common to pass slices as arguments rather than vectors