From 4c565c8a636aa0e1e13dd801340ad6545fd256e9 Mon Sep 17 00:00:00 2001 From: careworry <167077904+careworry@users.noreply.github.com> Date: Thu, 18 Apr 2024 20:25:44 +0800 Subject: [PATCH] doc: fix typos PR #1182 --- regex-automata/src/dfa/dense.rs | 2 +- regex-automata/src/util/determinize/state.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regex-automata/src/dfa/dense.rs b/regex-automata/src/dfa/dense.rs index 8e0f33c03..ed37d3b84 100644 --- a/regex-automata/src/dfa/dense.rs +++ b/regex-automata/src/dfa/dense.rs @@ -2498,7 +2498,7 @@ impl OwnedDFA { self.tt.set(from, byte, to); } - /// An an empty state (a state where all transitions lead to a dead state) + /// An empty state (a state where all transitions lead to a dead state) /// and return its identifier. The identifier returned is guaranteed to /// not point to any other existing state. /// diff --git a/regex-automata/src/util/determinize/state.rs b/regex-automata/src/util/determinize/state.rs index 8a8561a31..540d5d4d1 100644 --- a/regex-automata/src/util/determinize/state.rs +++ b/regex-automata/src/util/determinize/state.rs @@ -57,7 +57,7 @@ can only be used for adding NFA state IDs and recording some assertions. The expected flow here is to use the above builders to construct a candidate DFA state to check if it already exists. If it does, then there's no need to -freeze it into a `State`. It it doesn't exist, then `StateBuilderNFA::to_state` +freeze it into a `State`. If it doesn't exist, then `StateBuilderNFA::to_state` can be called to freeze the builder into an immutable `State`. In either case, `clear` should be called on the builder to turn it back into a `StateBuilderEmpty` that reuses the underlying memory.