We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e454c45 commit 900e6faCopy full SHA for 900e6fa
library/core/src/str/mod.rs
@@ -772,7 +772,7 @@ impl str {
772
///
773
/// The caller must ensure that `mid` is a valid byte offset from the start
774
/// of the string and falls on the boundary of a UTF-8 code point.
775
- unsafe fn split_at_mut_unchecked(&mut self, mid: usize) -> (&mut str, &mut str) {
+ unsafe const fn split_at_mut_unchecked(&mut self, mid: usize) -> (&mut str, &mut str) {
776
let len = self.len();
777
let ptr = self.as_mut_ptr();
778
// SAFETY: caller guarantees `mid` is on a char boundary.
0 commit comments