From 433392afd85a183080577f92ce395ea262d0b1dd Mon Sep 17 00:00:00 2001 From: Matt Cox Date: Wed, 4 Mar 2015 08:15:58 -0800 Subject: [PATCH] Reword str docs and include links to StrExt --- src/libcollections/str.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 599b92d05dd..7941283287e 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -10,12 +10,15 @@ // // ignore-lexer-test FIXME #15679 -//! Unicode string manipulation (the `str` type). +//! Unicode string manipulation (the [`str`](../primitive.str.html) type). //! -//! Rust's `str` type is one of the core primitive types of the language. `&str` is the borrowed -//! string type. This type of string can only be created from other strings, unless it is a static -//! string (see below). As the word "borrowed" implies, this type of string is owned elsewhere, and -//! this string cannot be moved out of. +//! Rust's [`str`](../primitive.str.html) type is one of the core primitive types of the +//! language. `&str` is the borrowed string type. This type of string can only be created +//! from other strings, unless it is a `&'static str` (see below). It is not possible to +//! move out of borrowed strings because they are owned elsewhere. +//! +//! Basic operations are implemented directly by the compiler, but more advanced operations are +//! defined on the [`StrExt`](trait.StrExt.html) trait. //! //! # Examples //!