Skip to content

Commit c65d68c

Browse files
committed
Update stale comment.
This wasn't updated to mention RE_SAVE_LINKAGE_INFO.
1 parent 50a5fe7 commit c65d68c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

include/fsm/bool.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ fsm_union_array(size_t fsm_count,
5757
* eager outputs can match. Ownership of the NFAs is transferred, they will
5858
* be combined (or freed, if they don't have a start state).
5959
*
60-
* This MUST be called with NFAs constructed via re_comp, Calling it
61-
* with manually constructed NFAs or DFAs may lead to incorrect loop
62-
* linking, because in a few ambiguous cases (e.g. `$|^`) it relies on
63-
* internal details of re_comp's normal construction to correctly
64-
* identify the state representing the unanchored start loop.
60+
* This must be called with NFAs constructed via re_comp, using its
61+
* RE_SAVE_LINKAGE_INFO flag. That saves details during construction
62+
* that are necessary to correctly handle anchoring while linking
63+
* them into the combined NFA. If any of the NFAs do not have that
64+
* information populated, the whole set will be rejected and it
65+
* will return NULL.
6566
*
6667
* This will set end IDs and/or output IDs representing matching each
6768
* of the original NFAs on the combined result, where nfas[i] will

0 commit comments

Comments
 (0)