Skip to content

Commit

Permalink
doc: fix some typos
Browse files Browse the repository at this point in the history
PR #856
  • Loading branch information
cuishuang committed Apr 24, 2022
1 parent 258bdf7 commit b537286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions bench/src/sherlock.rs
Expand Up @@ -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"))]
Expand Down

0 comments on commit b537286

Please sign in to comment.