File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
// ignore-lexer-test FIXME #15679
12
12
13
- //! Unicode string manipulation (the `str` type).
13
+ //! Unicode string manipulation (the [ `str`](../primitive.str.html) type).
14
14
//!
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.
19
22
//!
20
23
//! # Examples
21
24
//!
You can’t perform that action at this time.
0 commit comments