Skip to content

Commit 541ef7d

Browse files
committed
add inline to copy_within
1 parent 82ae0ee commit 541ef7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/slice/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3906,6 +3906,7 @@ impl<T> [T] {
39063906
///
39073907
/// assert_eq!(&bytes, b"Hello, Wello!");
39083908
/// ```
3909+
#[inline]
39093910
#[stable(feature = "copy_within", since = "1.37.0")]
39103911
#[track_caller]
39113912
pub fn copy_within<R: RangeBounds<usize>>(&mut self, src: R, dest: usize)

0 commit comments

Comments
 (0)