diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2016-01-13 23:19:24 +0000 |
|---|---|---|
| committer | Oliver Middleton <olliemail27@gmail.com> | 2016-01-13 23:19:24 +0000 |
| commit | 01cbdf4481915948773a8abfb67bcc1a44571dab (patch) | |
| tree | f8513e53f53e0936f28e909bc442b10020d62151 /src/libcollections | |
| parent | d3c83fef245f1cb2e523c8913b8968c98faec1f4 (diff) | |
Fix some broken and missing links in the docs
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/lib.rs | 2 | ||||
| -rw-r--r-- | src/libcollections/str.rs | 2 | ||||
| -rw-r--r-- | src/libcollections/string.rs | 11 |
3 files changed, 9 insertions, 6 deletions
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs index 370857287d6..8b876df32af 100644 --- a/src/libcollections/lib.rs +++ b/src/libcollections/lib.rs @@ -10,7 +10,7 @@ //! Collection types. //! -//! See [std::collections](../std/collections) for a detailed discussion of +//! See [std::collections](../std/collections/index.html) for a detailed discussion of //! collections in Rust. #![crate_name = "collections"] diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index f3bdb0efeef..766867f284e 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -1384,7 +1384,7 @@ impl str { /// /// For iterating from the front, the [`matches()`] method can be used. /// - /// [`matches`]: #method.matches + /// [`matches()`]: #method.matches /// /// # Examples /// diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index d2cbcad875f..a611110a91a 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -62,6 +62,7 @@ use boxed::Box; /// hello.push_str("orld!"); /// ``` /// +/// [`char`]: ../primitive.char.html /// [`push()`]: #method.push /// [`push_str()`]: #method.push_str /// @@ -163,8 +164,8 @@ use boxed::Box; /// ``` /// /// [`as_ptr()`]: #method.as_ptr -/// [`len()`]: # method.len -/// [`capacity()`]: # method.capacity +/// [`len()`]: #method.len +/// [`capacity()`]: #method.capacity /// /// If a `String` has enough capacity, adding elements to it will not /// re-allocate. For example, consider this program: @@ -444,7 +445,7 @@ impl String { /// Converts a slice of bytes to a `String`, including invalid characters. /// /// A string slice ([`&str`]) is made of bytes ([`u8`]), and a slice of - /// bytes ([`&[u8]`]) is made of bytes, so this function converts between + /// bytes ([`&[u8]`][byteslice]) is made of bytes, so this function converts between /// the two. Not all byte slices are valid string slices, however: [`&str`] /// requires that it is valid UTF-8. During this conversion, /// `from_utf8_lossy()` will replace any invalid UTF-8 sequences with @@ -452,7 +453,7 @@ impl String { /// /// [`&str`]: ../primitive.str.html /// [`u8`]: ../primitive.u8.html - /// [`&[u8]`]: ../primitive.slice.html + /// [byteslice]: ../primitive.slice.html /// /// If you are sure that the byte slice is valid UTF-8, and you don't want /// to incur the overhead of the conversion, there is an unsafe version @@ -1311,6 +1312,8 @@ impl FromUtf8Error { /// /// [`Utf8Error`]: ../str/struct.Utf8Error.html /// [`std::str`]: ../str/index.html + /// [`u8`]: ../primitive.u8.html + /// [`&str`]: ../primitive.str.html /// /// # Examples /// |
