From 6ee7ee42348e35e1fdf127b2473e929b882a3764 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 15:44:50 +0200 Subject: [PATCH] Delete the sort-order restatements on walkNodes and compileFields --- graph.go | 3 +-- node.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/graph.go b/graph.go index 868f75a..4992dc9 100644 --- a/graph.go +++ b/graph.go @@ -5,8 +5,7 @@ import ( "sort" ) -// walkNodes calls fn once per contained node, passing the dot path that reaches it, -// visiting keys in sorted order. +// walkNodes calls fn once per contained node, passing the dot path that reaches it. func walkNodes(root map[string]node, fn func(path string, n node) error) error { for _, name := range sortedNames(root) { if err := eachNode(root[name], name, fn); err != nil { diff --git a/node.go b/node.go index 69044e0..0725b7d 100644 --- a/node.go +++ b/node.go @@ -371,7 +371,7 @@ func readOptions(m map[string]any, pos position) (templateOptions, error) { return o, nil } -// compileFields compiles every non-option key of a template object, in name order. +// compileFields compiles every non-option key of a template object. func compileFields(m map[string]any, pos position) (map[string]node, error) { fields := make(map[string]node, len(m)) keys := make([]string, 0, len(m))