File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 132132//!
133133//! The standard library exposes 3 common ways to deal with contiguous
134134//! regions of memory:
135- //!
135+ //!
136136//! * [`Vec<T>`](vec/index.html) - A heap-allocated *vector* that is
137137//! resizable at runtime.
138138//! * [`[T; n]`](primitive.array.html) - An inline *array* with a
147147//! * `&[T]` - *shared slice*
148148//! * `&mut [T]` - *mutable slice*
149149//! * [`Box<[T]>`](boxed/index.html) - *owned slice*
150- //!
150+ //!
151151//! `str`, a UTF-8 string slice, is a primitive type, and the standard
152- //! library defines [many methods for it](primitive.str.html). Rust
153- //! `str`s are immutable; use the owned `String` type defined in
152+ //! library defines [many methods for it](primitive.str.html). Rust
153+ //! `str`s are typically accessed as immutable references: `&mut
154+ //! str`. Use the owned `String` type defined in
154155//! [`string`](string/index.html) for building and mutating strings.
155156//!
156157//! For converting to strings use the [`format!`](fmt/index.html)
You can’t perform that action at this time.
0 commit comments