@@ -1324,11 +1324,11 @@ pub trait ByteSlice: Sealed {
13241324 SplitReverse :: new ( self . as_bytes ( ) , splitter. as_ref ( ) )
13251325 }
13261326
1327- /// Split this byte string at the first occurance of `splitter`.
1327+ /// Split this byte string at the first occurrence of `splitter`.
13281328 ///
13291329 /// If the `splitter` is found in the byte string, returns a tuple
1330- /// containing the parts of the string before and after the first occurance
1331- /// of `splitter` respectively. Otherwise, if there are no occurances of
1330+ /// containing the parts of the string before and after the first occurrence
1331+ /// of `splitter` respectively. Otherwise, if there are no occurrences of
13321332 /// `splitter` in the byte string, returns `None`.
13331333 ///
13341334 /// The splitter may be any type that can be cheaply converted into a
@@ -1368,11 +1368,11 @@ pub trait ByteSlice: Sealed {
13681368 Some ( ( & bytes[ ..start] , & bytes[ end..] ) )
13691369 }
13701370
1371- /// Split this byte string at the last occurance of `splitter`.
1371+ /// Split this byte string at the last occurrence of `splitter`.
13721372 ///
13731373 /// If the `splitter` is found in the byte string, returns a tuple
1374- /// containing the parts of the string before and after the last occurance
1375- /// of `splitter`, respectively. Otherwise, if there are no occurances of
1374+ /// containing the parts of the string before and after the last occurrence
1375+ /// of `splitter`, respectively. Otherwise, if there are no occurrences of
13761376 /// `splitter` in the byte string, returns `None`.
13771377 ///
13781378 /// The splitter may be any type that can be cheaply converted into a
@@ -1915,7 +1915,7 @@ pub trait ByteSlice: Sealed {
19151915 /// assert_eq!(vec![(0, 5, "à̖"), (5, 13, "🇺🇸")], graphemes);
19161916 /// ```
19171917 ///
1918- /// This example shows what happens when invalid UTF-8 is enountered . Note
1918+ /// This example shows what happens when invalid UTF-8 is encountered . Note
19191919 /// that the offsets are valid indices into the original string, and do
19201920 /// not necessarily correspond to the length of the `&str` returned!
19211921 ///
0 commit comments