Skip to content

Commit 433392a

Browse files
committed
Reword str docs and include links to StrExt
1 parent bdf6e4f commit 433392a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/libcollections/str.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
//
1111
// ignore-lexer-test FIXME #15679
1212

13-
//! Unicode string manipulation (the `str` type).
13+
//! Unicode string manipulation (the [`str`](../primitive.str.html) type).
1414
//!
15-
//! Rust's `str` type is one of the core primitive types of the language. `&str` is the borrowed
16-
//! string type. This type of string can only be created from other strings, unless it is a static
17-
//! string (see below). As the word "borrowed" implies, this type of string is owned elsewhere, and
18-
//! this string cannot be moved out of.
15+
//! Rust's [`str`](../primitive.str.html) type is one of the core primitive types of the
16+
//! language. `&str` is the borrowed string type. This type of string can only be created
17+
//! from other strings, unless it is a `&'static str` (see below). It is not possible to
18+
//! move out of borrowed strings because they are owned elsewhere.
19+
//!
20+
//! Basic operations are implemented directly by the compiler, but more advanced operations are
21+
//! defined on the [`StrExt`](trait.StrExt.html) trait.
1922
//!
2023
//! # Examples
2124
//!

0 commit comments

Comments
 (0)