parser.Options: embellish expect_enum_dot description

This affects tagged union parsing, and that should be mentioned here.
So now it is.
This commit is contained in:
torque 2023-11-23 17:55:47 -08:00
parent 98eac68929
commit 2208079355
Signed by: torque
SSH Key Fingerprint: SHA256:nCrXefBNo6EbjNSQhv0nXmEg/VuNq3sMF5b8zETw3Tk

View File

@ -99,7 +99,9 @@ pub const Options = struct {
// look like source code enum literals. Any enum value missing the leading `.` will // look like source code enum literals. Any enum value missing the leading `.` will
// result in a conversion error. If set to false, no preprocessing will be done // result in a conversion error. If set to false, no preprocessing will be done
// and enum values will be converted from the literal scalar/string. These two styles // and enum values will be converted from the literal scalar/string. These two styles
// cannot be mixed in a single document. // cannot be mixed in a single document. Note that this setting also affects how
// tagged unions are parsed (specifically, the union's field name must also have the
// leading `.` if this option is enabled.)
expect_enum_dot: bool = true, expect_enum_dot: bool = true,
// Only used by the parseTo family of functions. // Only used by the parseTo family of functions.