Skip to content

Commit a66fde6

Browse files
authored
doc: remove references to non-existent parameters
The routines likely got refactored but the docs were never updated. PR #1130
1 parent 1873e96 commit a66fde6

File tree

1 file changed

+3
-6
lines changed
  • regex-automata/src/nfa/thompson

1 file changed

+3
-6
lines changed

regex-automata/src/nfa/thompson/nfa.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,11 +1899,10 @@ impl DenseTransitions {
18991899
/// This follows the matching transition for any member of the alphabet.
19001900
///
19011901
/// The matching transition is found by looking for a transition that
1902-
/// doesn't correspond to `StateID::ZERO` for the byte `at` the given
1903-
/// position in `haystack`.
1902+
/// doesn't correspond to `StateID::ZERO` for the given alphabet `unit`.
19041903
///
1905-
/// If `at >= haystack.len()` or if the given alphabet unit is
1906-
/// [`EOI`](alphabet::Unit::eoi), then this returns `None`.
1904+
/// If the given alphabet unit is [`EOI`](alphabet::Unit::eoi), then
1905+
/// this returns `None`.
19071906
#[inline]
19081907
pub(crate) fn matches_unit(
19091908
&self,
@@ -1916,8 +1915,6 @@ impl DenseTransitions {
19161915
///
19171916
/// The matching transition is found by looking for a transition that
19181917
/// doesn't correspond to `StateID::ZERO` for the given `byte`.
1919-
///
1920-
/// If `at >= haystack.len()`, then this returns `None`.
19211918
#[inline]
19221919
pub fn matches_byte(&self, byte: u8) -> Option<StateID> {
19231920
let next = self.transitions[usize::from(byte)];

0 commit comments

Comments
 (0)