about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-03-23 13:40:41 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-03-23 13:59:04 -0400
commitd52c36246a2e7e1d263b31709424798cfdaa00e3 (patch)
tree155af5f9fce44ae146c2d9502f8796b52397216c /src/libstd
parentecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61 (diff)
downloadrust-d52c36246a2e7e1d263b31709424798cfdaa00e3.tar.gz
rust-d52c36246a2e7e1d263b31709424798cfdaa00e3.zip
Clarify that slices don't just point to arrays
Fixes #23632
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index b055796ba54..6833b6a0a21 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -40,11 +40,11 @@
 //!
 //! ## Vectors, slices and strings
 //!
-//! The common container type, `Vec`, a growable vector backed by an
-//! array, lives in the [`vec`](vec/index.html) module. References to
-//! arrays, `&[T]`, more commonly called "slices", are built-in types
-//! for which the [`slice`](slice/index.html) module defines many
-//! methods.
+//! The common container type, `Vec`, a growable vector backed by an array,
+//! lives in the [`vec`](vec/index.html) module. Contiguous, unsized regions
+//! of memory, `[T]`, commonly called "slices", and their borrowed versions,
+//! `&[T]`, commonly called "borrowed slices", are built-in types for which the
+//! for which the [`slice`](slice/index.html) module defines many methods.
 //!
 //! `&str`, a UTF-8 string, is a built-in type, and the standard library
 //! defines methods for it on a variety of traits in the