Improve comment

This commit is contained in:
Pieter Noordhuis 2024-10-17 15:06:08 +02:00 committed by GitHub
parent af846dedf6
commit cce8f33068
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ func (d *loader) loadMapping(node *yaml.Node, loc dyn.Location) (dyn.Value, erro
case "!!str":
// OK
case "!!null":
// A literal value of "null" is treated as a null by the YAML parser
// for compatibility with JSON. We treat it as a string if used as a key.
// A literal unquoted "null" is treated as a null value by the YAML parser.
// However, when used as a key, it is treated as the string "null".
case "!!merge":
if merge != nil {
panic("merge node already set")