Skip to content

Commit 593289f

Browse files
committed
Rename IoSlice::as_bytes to IoSlice::into_bytes
1 parent a36bed9 commit 593289f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/io/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ impl<'a> IoSlice<'a> {
15121512
#[unstable(feature = "io_slice_as_bytes", issue = "111277")]
15131513
#[inline]
15141514
#[must_use]
1515-
pub const fn as_bytes(&self) -> &'a [u8] {
1515+
pub const fn into_bytes(&self) -> &'a [u8] {
15161516
self.0.as_slice()
15171517
}
15181518
}

0 commit comments

Comments
 (0)