about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-09-25 13:01:31 +0200
committerSimon Sapin <simon.sapin@exyr.org>2015-09-25 13:01:31 +0200
commit761d16327ab41b80aa7fd142fe74acdc79f0a4b2 (patch)
tree6c0c6cc398419deda3a5ea715c08929abe5a6bf4 /src/libcore
parent5ca60d94316bd56f412ef4c13292237e206babf1 (diff)
downloadrust-761d16327ab41b80aa7fd142fe74acdc79f0a4b2.tar.gz
rust-761d16327ab41b80aa7fd142fe74acdc79f0a4b2.zip
Docs: &A and &mut A are references, not pointers
Caught by Brian Smith: https://github.com/rust-lang/rust/issues/27774#issuecomment-143154735
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index 5518bacb019..a4ccc975d56 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -1410,7 +1410,7 @@ impl<'a, T> ExactSizeIterator for ChunksMut<'a, T> {}
 // Free functions
 //
 
-/// Converts a pointer to A into a slice of length 1 (without copying).
+/// Converts a reference to A into a slice of length 1 (without copying).
 #[unstable(feature = "ref_slice", issue = "27774")]
 pub fn ref_slice<A>(s: &A) -> &[A] {
     unsafe {
@@ -1418,7 +1418,7 @@ pub fn ref_slice<A>(s: &A) -> &[A] {
     }
 }
 
-/// Converts a pointer to A into a slice of length 1 (without copying).
+/// Converts a reference to A into a slice of length 1 (without copying).
 #[unstable(feature = "ref_slice", issue = "27774")]
 pub fn mut_ref_slice<A>(s: &mut A) -> &mut [A] {
     unsafe {