Skip to content

Commit 6d5ae6b

Browse files
committed
Address more feedback
1 parent 3a180d1 commit 6d5ae6b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libstd/lib.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
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
@@ -147,10 +147,11 @@
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)

0 commit comments

Comments
 (0)