Skip to content

Commit 25c01eb

Browse files
committed
Rename IoSlice::as_bytes to IoSlice::into_bytes
1 parent e62f6ee commit 25c01eb

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
@@ -1313,7 +1313,7 @@ impl<'a> IoSlice<'a> {
13131313
#[unstable(feature = "io_slice_as_bytes", issue = "111277")]
13141314
#[inline]
13151315
#[must_use]
1316-
pub const fn as_bytes(&self) -> &'a [u8] {
1316+
pub const fn into_bytes(&self) -> &'a [u8] {
13171317
self.0.as_slice()
13181318
}
13191319
}

0 commit comments

Comments
 (0)