From b5372864e2df6a2f5e543a556a62197f50ca3650 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Mon, 25 Apr 2022 01:24:49 +0800 Subject: [PATCH] doc: fix some typos PR #856 --- CHANGELOG.md | 2 +- bench/src/sherlock.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"))]