Skip to content

Commit b537286

Browse files
authored
doc: fix some typos
PR #856
1 parent 258bdf7 commit b537286

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ New features:
683683
* Empty sub-expressions are now permitted in most places. That is, `()+` is
684684
now a valid regex.
685685
* Almost everything in regex-syntax now uses constant stack space, even when
686-
performing anaylsis that requires structural induction. This reduces the risk
686+
performing analysis that requires structural induction. This reduces the risk
687687
of a user provided regular expression causing a stack overflow.
688688
* [FEATURE #174](https://github.com/rust-lang/regex/issues/174):
689689
The `Ast` type in `regex-syntax` now contains span information.

bench/src/sherlock.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ sherlock!(before_holmes, r"\w+\s+Holmes", 319);
149149
// and suffix optimizations.
150150
sherlock!(before_after_holmes, r"\w+\s+Holmes\s+\w+", 137);
151151

152-
// Find Holmes co-occuring with Watson in a particular window of characters.
152+
// Find Holmes co-occurring with Watson in a particular window of characters.
153153
// This uses Aho-Corasick for the Holmes|Watson prefix, but the lazy DFA for
154154
// the rest.
155155
sherlock!(holmes_cochar_watson, r"Holmes.{0,25}Watson|Watson.{0,25}Holmes", 7);
156156

157-
// Find Holmes co-occuring with Watson in a particular window of words.
157+
// Find Holmes co-occurring with Watson in a particular window of words.
158158
// This uses Aho-Corasick for the Holmes|Watson prefix, but the lazy DFA for
159159
// the rest.
160160
#[cfg(not(feature = "re-onig"))]

0 commit comments

Comments
 (0)