Skip to content

Commit e85a1a8

Browse files
authored
docs: explain how to call .useContextVars()
1 parent 7899a23 commit e85a1a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ These options can be used in all parsers.
547547
You can use some special fields while parsing to traverse your structure.
548548
These context variables will be removed after the parsing process.
549549
Note that this feature is turned off by default for performance reasons, and
550-
you need to call `.useContextVars()` to enable it.
550+
you need to call `.useContextVars()` at the top level `Parser` to enable it.
551+
Otherwise, the context variables will not be present.
551552

552553
- `$parent` - This field references the parent structure. This variable will be
553554
`null` while parsing the root structure.

0 commit comments

Comments
 (0)