From 761d16327ab41b80aa7fd142fe74acdc79f0a4b2 Mon Sep 17 00:00:00 2001
From: Simon Sapin <simon.sapin@exyr.org>
Date: Fri, 25 Sep 2015 13:01:31 +0200
Subject: [PATCH] Docs: &A and &mut A are references, not pointers

Caught by Brian Smith: https://github.com/rust-lang/rust/issues/27774#issuecomment-143154735
---
 src/libcore/slice.rs | 4 ++--
 1 file 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 {