diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-09-25 13:33:32 -0600 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-09-25 13:33:32 -0600 |
| commit | eae4821d1db0e8d0f38e343dcbf49fb172c74d80 (patch) | |
| tree | ebc1115281c00ee532abee5aed2fdb5125d7599a /src | |
| parent | d2e2ec166182e039fa7dd26581fc9e762288d440 (diff) | |
| parent | 761d16327ab41b80aa7fd142fe74acdc79f0a4b2 (diff) | |
| download | rust-eae4821d1db0e8d0f38e343dcbf49fb172c74d80.tar.gz rust-eae4821d1db0e8d0f38e343dcbf49fb172c74d80.zip | |
Rollup merge of #28652 - SimonSapin:patch-11, r=sanxiyn
Caught by Brian Smith: https://github.com/rust-lang/rust/issues/27774#issuecomment-143154735
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/slice.rs | 4 |
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 { |
