summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-07-14 10:25:54 -0700
committerBrian Anderson <banderson@mozilla.com>2015-07-14 10:27:33 -0700
commit6d5ae6b20dd86de5d65cfcac28664357b6d5d953 (patch)
tree389d9898157ecddc476359e8beb43b6373858bc7 /src/libstd/lib.rs
parent3a180d15f81d3f9dfcb965c7c89d02b64a90f62e (diff)
downloadrust-6d5ae6b20dd86de5d65cfcac28664357b6d5d953.tar.gz
rust-6d5ae6b20dd86de5d65cfcac28664357b6d5d953.zip
Address more feedback
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 004bdf86661..2bb914f2095 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -132,7 +132,7 @@
 //!
 //! The standard library exposes 3 common ways to deal with contiguous
 //! regions of memory:
-//! 
+//!
 //! * [`Vec<T>`](vec/index.html) - A heap-allocated *vector* that is
 //! resizable at runtime.
 //! * [`[T; n]`](primitive.array.html) - An inline *array* with a
@@ -147,10 +147,11 @@
 //! * `&[T]` - *shared slice*
 //! * `&mut [T]` - *mutable slice*
 //! * [`Box<[T]>`](boxed/index.html) - *owned slice*
-//!    
+//!
 //! `str`, a UTF-8 string slice, is a primitive type, and the standard
-//! library defines [many methods for it](primitive.str.html).  Rust
-//! `str`s are immutable; use the owned `String` type defined in
+//! library defines [many methods for it](primitive.str.html). Rust
+//! `str`s are typically accessed as immutable references: `&mut
+//! str`. Use the owned `String` type defined in
 //! [`string`](string/index.html) for building and mutating strings.
 //!
 //! For converting to strings use the [`format!`](fmt/index.html)