File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 132
132
//!
133
133
//! The standard library exposes 3 common ways to deal with contiguous
134
134
//! regions of memory:
135
- //!
135
+ //!
136
136
//! * [`Vec<T>`](vec/index.html) - A heap-allocated *vector* that is
137
137
//! resizable at runtime.
138
138
//! * [`[T; n]`](primitive.array.html) - An inline *array* with a
147
147
//! * `&[T]` - *shared slice*
148
148
//! * `&mut [T]` - *mutable slice*
149
149
//! * [`Box<[T]>`](boxed/index.html) - *owned slice*
150
- //!
150
+ //!
151
151
//! `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
154
155
//! [`string`](string/index.html) for building and mutating strings.
155
156
//!
156
157
//! For converting to strings use the [`format!`](fmt/index.html)
You can’t perform that action at this time.
0 commit comments