diff options
| author | Michael Lamparski <diagonaldevice@gmail.com> | 2018-05-09 18:05:36 -0400 |
|---|---|---|
| committer | Michael Lamparski <diagonaldevice@gmail.com> | 2018-05-09 18:30:32 -0400 |
| commit | b8eb91a5ade04804118d39a0f74ae908f33b6268 (patch) | |
| tree | 2f8bd0e3d2442799485e30d7dc4764f52ac2fc0c /src/libstd | |
| parent | 8010604b2d888ac839147fe27de76cdcc713aa1b (diff) | |
| download | rust-b8eb91a5ade04804118d39a0f74ae908f33b6268.tar.gz rust-b8eb91a5ade04804118d39a0f74ae908f33b6268.zip | |
make std::str link into See also link
also make a drive-by typo fix
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/primitive_docs.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index 6e329d85539..7074928eaf6 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -594,15 +594,13 @@ mod prim_slice { } // /// String slices. /// +/// *[See also the `std::str` module](str/index.html).* +/// /// The `str` type, also called a 'string slice', is the most primitive string /// type. It is usually seen in its borrowed form, `&str`. It is also the type /// of string literals, `&'static str`. /// -/// Strings slices are always valid UTF-8. -/// -/// This documentation describes a number of methods and trait implementations -/// on the `str` type. For technical reasons, there is additional, separate -/// documentation in the [`std::str`](str/index.html) module as well. +/// String slices are always valid UTF-8. /// /// # Examples /// |
