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 {
1899
1899
/// This follows the matching transition for any member of the alphabet.
1900
1900
///
1901
1901
/// 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`.
1904
1903
///
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`.
1907
1906
#[ inline]
1908
1907
pub ( crate ) fn matches_unit (
1909
1908
& self ,
@@ -1916,8 +1915,6 @@ impl DenseTransitions {
1916
1915
///
1917
1916
/// The matching transition is found by looking for a transition that
1918
1917
/// doesn't correspond to `StateID::ZERO` for the given `byte`.
1919
- ///
1920
- /// If `at >= haystack.len()`, then this returns `None`.
1921
1918
#[ inline]
1922
1919
pub fn matches_byte ( & self , byte : u8 ) -> Option < StateID > {
1923
1920
let next = self . transitions [ usize:: from ( byte) ] ;
You can’t perform that action at this time.
0 commit comments