Skip to content

Commit 7bc8f88

Browse files
authored
doc: update the old UTF-8 automata algorithm in comment
regex-cli went through a few iterations before its initial release, but this means some comments in the code that reference it are now probably stale. This fixes one of them. PR #1049
1 parent e55e96c commit 7bc8f88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ impl Compiler {
13191319
// compare and contrast performance of the Pike VM when the code below
13201320
// is active vs the code above. Here's an example to try:
13211321
//
1322-
// regex-cli find nfa thompson pikevm -b @$smallishru '(?m)^\w{20}'
1322+
// regex-cli find match pikevm -b -p '(?m)^\w{20}' -y '@$smallishru'
13231323
//
13241324
// With Unicode classes generated below, this search takes about 45s on
13251325
// my machine. But with the compressed version above, the search takes
@@ -1338,7 +1338,7 @@ impl Compiler {
13381338
.map(|rng| self.c_range(rng.start, rng.end));
13391339
self.c_concat(it)
13401340
});
1341-
self.c_alt(it)
1341+
self.c_alt_iter(it)
13421342
*/
13431343
}
13441344

0 commit comments

Comments
 (0)