diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cd27e7d1..8bf571caf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -683,7 +683,7 @@ New features: * Empty sub-expressions are now permitted in most places. That is, `()+` is now a valid regex. * Almost everything in regex-syntax now uses constant stack space, even when - performing anaylsis that requires structural induction. This reduces the risk + performing analysis that requires structural induction. This reduces the risk of a user provided regular expression causing a stack overflow. * [FEATURE #174](https://github.com/rust-lang/regex/issues/174): The `Ast` type in `regex-syntax` now contains span information. diff --git a/bench/src/sherlock.rs b/bench/src/sherlock.rs index 8feb5862e..d1afbdd1b 100644 --- a/bench/src/sherlock.rs +++ b/bench/src/sherlock.rs @@ -149,12 +149,12 @@ sherlock!(before_holmes, r"\w+\s+Holmes", 319); // and suffix optimizations. sherlock!(before_after_holmes, r"\w+\s+Holmes\s+\w+", 137); -// Find Holmes co-occuring with Watson in a particular window of characters. +// Find Holmes co-occurring with Watson in a particular window of characters. // This uses Aho-Corasick for the Holmes|Watson prefix, but the lazy DFA for // the rest. sherlock!(holmes_cochar_watson, r"Holmes.{0,25}Watson|Watson.{0,25}Holmes", 7); -// Find Holmes co-occuring with Watson in a particular window of words. +// Find Holmes co-occurring with Watson in a particular window of words. // This uses Aho-Corasick for the Holmes|Watson prefix, but the lazy DFA for // the rest. #[cfg(not(feature = "re-onig"))]