]> git.lizzy.rs Git - rust.git/commitdiff
Reword str docs and include links to StrExt
authorMatt Cox <mattcoxpdx@gmail.com>
Wed, 4 Mar 2015 16:15:58 +0000 (08:15 -0800)
committerMatt Cox <mattcoxpdx@gmail.com>
Wed, 4 Mar 2015 16:15:58 +0000 (08:15 -0800)
src/libcollections/str.rs

index 599b92d05ddd7e21d3337ae2d9045bd1f082d8d4..7941283287e2c0a3101d96e26a467248643a526b 100644 (file)
 //
 // 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
 //!