@@ -717,7 +717,7 @@ impl str {
717717 // is_char_boundary checks that the index is in [0, .len()]
718718 if self . is_char_boundary ( mid) {
719719 // 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) } )
721721 } else {
722722 None
723723 }
@@ -771,7 +771,7 @@ impl str {
771771 /// of the string and falls on the boundary of a UTF-8 code point.
772772 #[ inline]
773773 #[ 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 ) {
775775 let len = self . len ( ) ;
776776 let ptr = self . as_ptr ( ) ;
777777
@@ -798,7 +798,7 @@ impl str {
798798 /// of the string and falls on the boundary of a UTF-8 code point.
799799 #[ inline]
800800 #[ 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 ) {
802802 let len = self . len ( ) ;
803803 let ptr = self . as_mut_ptr ( ) ;
804804
@@ -2152,7 +2152,7 @@ impl str {
21522152 if let Some ( ( a, b) ) = matcher. next_reject ( ) {
21532153 i = a;
21542154 j = b; // Remember earliest known match, correct it below if
2155- // last match is different
2155+ // last match is different
21562156 }
21572157 if let Some ( ( _, b) ) = matcher. next_reject_back ( ) {
21582158 j = b;
0 commit comments