Skip to content

Commit eae4821

Browse files
committed
Rollup merge of rust-lang#28652 - SimonSapin:patch-11, r=sanxiyn
Caught by Brian Smith: rust-lang#27774 (comment)
2 parents d2e2ec1 + 761d163 commit eae4821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/slice.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1410,15 +1410,15 @@ impl<'a, T> ExactSizeIterator for ChunksMut<'a, T> {}
14101410
// Free functions
14111411
//
14121412

1413-
/// Converts a pointer to A into a slice of length 1 (without copying).
1413+
/// Converts a reference to A into a slice of length 1 (without copying).
14141414
#[unstable(feature = "ref_slice", issue = "27774")]
14151415
pub fn ref_slice<A>(s: &A) -> &[A] {
14161416
unsafe {
14171417
from_raw_parts(s, 1)
14181418
}
14191419
}
14201420

1421-
/// Converts a pointer to A into a slice of length 1 (without copying).
1421+
/// Converts a reference to A into a slice of length 1 (without copying).
14221422
#[unstable(feature = "ref_slice", issue = "27774")]
14231423
pub fn mut_ref_slice<A>(s: &mut A) -> &mut [A] {
14241424
unsafe {

0 commit comments

Comments
 (0)