Skip to content

Commit 1248666

Browse files
tsnoamshepmaster
authored andcommitted
Correct typos in the docs
1 parent 326b008 commit 1248666

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ where
259259
/// A convenience type that can be used in a constant or static.
260260
pub 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.
263263
pub 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())

0 commit comments

Comments
 (0)