Skip to content

Commit ff5cdb0

Browse files
authored
Merge pull request #220 from wpyoga/doc-update-usecontextvars
docs: explain how to call `.useContextVars()`
2 parents 7899a23 + e85a1a8 commit ff5cdb0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)