diff options
| author | Florian Hartwig <florian.j.hartwig@gmail.com> | 2015-04-16 22:12:13 +0200 |
|---|---|---|
| committer | Florian Hartwig <florian.j.hartwig@gmail.com> | 2015-04-16 22:15:36 +0200 |
| commit | 6ac836f229b10d281c034dcf5acfff5003f86fba (patch) | |
| tree | c5487f83f7a1076e2eaee1fdd6aa3db31dc6518b /src/libcore | |
| parent | e9080ec39d9a44eb0773d648b348575b19f655e5 (diff) | |
| download | rust-6ac836f229b10d281c034dcf5acfff5003f86fba.tar.gz rust-6ac836f229b10d281c034dcf5acfff5003f86fba.zip | |
Fix broken links in the docs
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/raw.rs | 4 | ||||
| -rw-r--r-- | src/libcore/result.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/raw.rs b/src/libcore/raw.rs index ded52ff0778..685b3e5c546 100644 --- a/src/libcore/raw.rs +++ b/src/libcore/raw.rs @@ -71,11 +71,11 @@ impl<T> Clone for Slice<T> { /// The representation of a trait object like `&SomeTrait`. /// /// This struct has the same layout as types like `&SomeTrait` and -/// `Box<AnotherTrait>`. The [Static and Dynamic Dispatch chapter of the +/// `Box<AnotherTrait>`. The [Trait Objects chapter of the /// Book][moreinfo] contains more details about the precise nature of /// these internals. /// -/// [moreinfo]: ../../book/static-and-dynamic-dispatch.html#representation +/// [moreinfo]: ../../book/trait-objects.html#representation /// /// `TraitObject` is guaranteed to match layouts, but it is not the /// type of trait objects (e.g. the fields are not directly accessible diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 4c74f4646ac..26bc653b26f 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -86,12 +86,12 @@ //! useful value. //! //! Consider the `write_all` method defined for I/O types -//! by the [`Write`](../io/trait.Write.html) trait: +//! by the [`Write`](../../std/io/trait.Write.html) trait: //! //! ``` //! use std::io; //! -//! trait Writer { +//! trait Write { //! fn write_all(&mut self, bytes: &[u8]) -> Result<(), io::Error>; //! } //! ``` |
