From cce8f3306850f1ab2aaf2f09366ae4bd5f1349a8 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 17 Oct 2024 15:06:08 +0200 Subject: [PATCH] Improve comment --- libs/dyn/yamlloader/loader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/dyn/yamlloader/loader.go b/libs/dyn/yamlloader/loader.go index 1ba4a26e..b4aaf0a7 100644 --- a/libs/dyn/yamlloader/loader.go +++ b/libs/dyn/yamlloader/loader.go @@ -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")