about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeon Matthes <leon@matthes.biz>2020-08-23 16:02:22 +0200
committerLeon Matthes <leon@matthes.biz>2020-08-23 16:02:22 +0200
commitcf76256b83d7ccbf1d673c4bcb3ad0d1bd904315 (patch)
treeb80e4766bca287030dfd2ffb0dec59d428a81ea2
parent41d3e1cf738b6bfe1c7f85ad09b2adea9c8744e8 (diff)
downloadrust-cf76256b83d7ccbf1d673c4bcb3ad0d1bd904315.tar.gz
rust-cf76256b83d7ccbf1d673c4bcb3ad0d1bd904315.zip
Revert changed paragraph about slice definition.
This reverts part of commit e6c83dd57b920d2069797736ae0a1c9fe14a97cb.
As requested by @steveklabnik .
-rw-r--r--library/std/src/primitive_docs.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs
index fb62c3c63ca..03eb3dd2fe6 100644
--- a/library/std/src/primitive_docs.rs
+++ b/library/std/src/primitive_docs.rs
@@ -565,8 +565,8 @@ mod prim_array {}
 ///
 /// *[See also the `std::slice` module](slice/index.html).*
 ///
-/// A slice is any pointer/reference to a block of memory. They are represented
-/// as a regular pointer and a length.
+/// Slices are a view into a block of memory represented as a pointer and a
+/// length.
 ///
 /// ```
 /// // slicing a Vec