File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ where
259
259
/// A convenience type that can be used in a constant or static.
260
260
pub type AsciiCharsConst = AsciiChars < fn ( u8 ) -> bool > ;
261
261
262
- /// Searches a slice for the first occurence of the subslice.
262
+ /// Searches a slice for the first occurrence of the subslice.
263
263
pub enum ByteSubstring < T > {
264
264
#[ cfg( any( jetscii_sse4_2 = "yes" , jetscii_sse4_2 = "maybe" ) ) ]
265
265
SIMD ( simd:: ByteSubstring < T > ) ,
@@ -301,7 +301,7 @@ where
301
301
}
302
302
}
303
303
304
- /// Searches the slice for the first occurence of the subslice.
304
+ /// Searches the slice for the first occurrence of the subslice.
305
305
#[ inline]
306
306
pub fn find ( & self , haystack : & [ u8 ] ) -> Option < usize > {
307
307
match self {
@@ -340,7 +340,7 @@ where
340
340
self . 0 . needle_len ( )
341
341
}
342
342
343
- /// Searches the string for the first occurence of the substring.
343
+ /// Searches the string for the first occurrence of the substring.
344
344
#[ inline]
345
345
pub fn find ( & self , haystack : & str ) -> Option < usize > {
346
346
self . 0 . find ( haystack. as_bytes ( ) )
You can’t perform that action at this time.
0 commit comments