File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
regex-automata/src/nfa/thompson Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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) ] ;
You can’t perform that action at this time.
0 commit comments