@@ -717,7 +717,7 @@ impl str {
717
717
// is_char_boundary checks that the index is in [0, .len()]
718
718
if self . is_char_boundary ( mid) {
719
719
// SAFETY: just checked that `mid` is on a char boundary.
720
- Some ( unsafe { self . split_at_unchecked ( mid) } )
720
+ Some ( unsafe { self . split_at_unchecked ( mid) } )
721
721
} else {
722
722
None
723
723
}
@@ -771,7 +771,7 @@ impl str {
771
771
/// of the string and falls on the boundary of a UTF-8 code point.
772
772
#[ inline]
773
773
#[ must_use]
774
- unsafe const fn split_at_unchecked ( & self , mid : usize ) -> ( & str , & str ) {
774
+ const unsafe fn split_at_unchecked ( & self , mid : usize ) -> ( & str , & str ) {
775
775
let len = self . len ( ) ;
776
776
let ptr = self . as_ptr ( ) ;
777
777
@@ -798,7 +798,7 @@ impl str {
798
798
/// of the string and falls on the boundary of a UTF-8 code point.
799
799
#[ inline]
800
800
#[ must_use]
801
- unsafe const fn split_at_mut_unchecked ( & mut self , mid : usize ) -> ( & mut str , & mut str ) {
801
+ const unsafe fn split_at_mut_unchecked ( & mut self , mid : usize ) -> ( & mut str , & mut str ) {
802
802
let len = self . len ( ) ;
803
803
let ptr = self . as_mut_ptr ( ) ;
804
804
@@ -2152,7 +2152,7 @@ impl str {
2152
2152
if let Some ( ( a, b) ) = matcher. next_reject ( ) {
2153
2153
i = a;
2154
2154
j = b; // Remember earliest known match, correct it below if
2155
- // last match is different
2155
+ // last match is different
2156
2156
}
2157
2157
if let Some ( ( _, b) ) = matcher. next_reject_back ( ) {
2158
2158
j = b;
0 commit comments