Skip to content

Commit 37c58c6

Browse files
Rollup merge of rust-lang#62186 - GuillaumeGomez:add-missing-type-links-into, r=docs
Add missing type urls in Into trait r? @rust-lang/docs
2 parents 05704e8 + 3e83728 commit 37c58c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/convert.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,12 @@ pub trait AsMut<T: ?Sized> {
251251
///
252252
/// # Examples
253253
///
254-
/// [`String`] implements `Into<Vec<u8>>`:
254+
/// [`String`] implements [`Into`]`<`[`Vec`]`<`[`u8`]`>>`:
255255
///
256256
/// In order to express that we want a generic function to take all arguments that can be
257257
/// converted to a specified type `T`, we can use a trait bound of [`Into`]`<T>`.
258258
/// For example: The function `is_hello` takes all arguments that can be converted into a
259-
/// `Vec<u8>`.
259+
/// [`Vec`]`<`[`u8`]`>`.
260260
///
261261
/// ```
262262
/// fn is_hello<T: Into<Vec<u8>>>(s: T) {
@@ -274,6 +274,7 @@ pub trait AsMut<T: ?Sized> {
274274
/// [`String`]: ../../std/string/struct.String.html
275275
/// [`From`]: trait.From.html
276276
/// [`Into`]: trait.Into.html
277+
/// [`Vec`]: ../../std/vec/struct.Vec.html
277278
#[stable(feature = "rust1", since = "1.0.0")]
278279
pub trait Into<T>: Sized {
279280
/// Performs the conversion.

0 commit comments

Comments
 (0)