diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-05 02:19:57 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-05 12:39:06 +0530 |
| commit | eab5d0d0ae3b7d80a378be38239c3e7c0f995acf (patch) | |
| tree | c9219f020932b1d3aa9ace2b43903ad76af382f6 | |
| parent | faca553a01e92914c7efc590512169b3e8793acf (diff) | |
| parent | 433392afd85a183080577f92ce395ea262d0b1dd (diff) | |
Rollup merge of #22937 - MDCox:str-docs, r=steveklabnik
Fixes #22902 r? @steveklabnik
| -rw-r--r-- | src/libcollections/str.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 7ea5b3fe9c0..19c085df2c4 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 //! |
