Rollup merge of #28652 - SimonSapin:patch-11, r=sanxiyn

Caught by Brian Smith: https://github.com/rust-lang/rust/issues/27774#issuecomment-143154735
This commit is contained in:
Steve Klabnik 2015-09-25 13:33:32 -06:00
commit eae4821d1d

View file

@ -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 {