Skip to content

Commit a66fca4

Browse files
author
Christian
committed
Added back a reference to "the book"
1 parent d657d18 commit a66fca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/convert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ pub trait Into<T>: Sized {
291291
/// When constructing a function that is capable of failing, the return type
292292
/// will generally be of the form `Result<T, E>`.
293293
/// The `From` trait simplifies error handling by allowing a function to return a single error type
294-
/// that encapsulate multiple error types. See the "Examples" section for more details.
294+
/// that encapsulate multiple error types. See the "Examples" section and [the book][book] for more details.
295295
///
296296
/// **Note: This trait must not fail**. If the conversion can fail, use [`TryFrom`].
297297
///
@@ -355,7 +355,7 @@ pub trait Into<T>: Sized {
355355
/// [`String`]: ../../std/string/struct.String.html
356356
/// [`Into<U>`]: trait.Into.html
357357
/// [`from`]: trait.From.html#tymethod.from
358-
/// [book]: ../../book/first-edition/error-handling.html
358+
/// [book]: ../../book/ch09-00-error-handling.html
359359
#[stable(feature = "rust1", since = "1.0.0")]
360360
pub trait From<T>: Sized {
361361
/// Performs the conversion.

0 commit comments

Comments
 (0)