File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ where
259259/// A convenience type that can be used in a constant or static.
260260pub type AsciiCharsConst = AsciiChars < fn ( u8 ) -> bool > ;
261261
262- /// Searches a slice for the first occurence of the subslice.
262+ /// Searches a slice for the first occurrence of the subslice.
263263pub enum ByteSubstring < T > {
264264 #[ cfg( any( jetscii_sse4_2 = "yes" , jetscii_sse4_2 = "maybe" ) ) ]
265265 SIMD ( simd:: ByteSubstring < T > ) ,
@@ -301,7 +301,7 @@ where
301301 }
302302 }
303303
304- /// Searches the slice for the first occurence of the subslice.
304+ /// Searches the slice for the first occurrence of the subslice.
305305 #[ inline]
306306 pub fn find ( & self , haystack : & [ u8 ] ) -> Option < usize > {
307307 match self {
@@ -340,7 +340,7 @@ where
340340 self . 0 . needle_len ( )
341341 }
342342
343- /// Searches the string for the first occurence of the substring.
343+ /// Searches the string for the first occurrence of the substring.
344344 #[ inline]
345345 pub fn find ( & self , haystack : & str ) -> Option < usize > {
346346 self . 0 . find ( haystack. as_bytes ( ) )
You can’t perform that action at this time.
0 commit comments