about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-07-03 09:59:18 -0400
committerGitHub <noreply@github.com>2019-07-03 09:59:18 -0400
commit37c58c63a7a2300cce60fe88fa5449aaf70fffd7 (patch)
tree160121c60d772fb4956bea7c8cda6f50dc46f057
parent05704e80bc2da5a6370ac263ebf5bc0f5085c290 (diff)
parent3e83728ddde9d8cb2ae3b35b99d570e7a9c5fbd6 (diff)
downloadrust-37c58c63a7a2300cce60fe88fa5449aaf70fffd7.tar.gz
rust-37c58c63a7a2300cce60fe88fa5449aaf70fffd7.zip
Rollup merge of #62186 - GuillaumeGomez:add-missing-type-links-into, r=docs
Add missing type urls in Into trait

r? @rust-lang/docs
-rw-r--r--src/libcore/convert.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs
index 34d19748e56..c0de8e2ceb3 100644
--- a/src/libcore/convert.rs
+++ b/src/libcore/convert.rs
@@ -251,12 +251,12 @@ pub trait AsMut<T: ?Sized> {
 ///
 /// # Examples
 ///
-/// [`String`] implements `Into<Vec<u8>>`:
+/// [`String`] implements [`Into`]`<`[`Vec`]`<`[`u8`]`>>`:
 ///
 /// In order to express that we want a generic function to take all arguments that can be
 /// converted to a specified type `T`, we can use a trait bound of [`Into`]`<T>`.
 /// For example: The function `is_hello` takes all arguments that can be converted into a
-/// `Vec<u8>`.
+/// [`Vec`]`<`[`u8`]`>`.
 ///
 /// ```
 /// fn is_hello<T: Into<Vec<u8>>>(s: T) {
@@ -274,6 +274,7 @@ pub trait AsMut<T: ?Sized> {
 /// [`String`]: ../../std/string/struct.String.html
 /// [`From`]: trait.From.html
 /// [`Into`]: trait.Into.html
+/// [`Vec`]: ../../std/vec/struct.Vec.html
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait Into<T>: Sized {
     /// Performs the conversion.