Reserve the reference prefix in authored names, and report one compile error
This commit is contained in:
committed by
lilleman-tw
parent
af0c99809c
commit
e14f3a4145
+1
-2
@@ -38,8 +38,7 @@ func linkRefs(root map[string]node) error {
|
||||
|
||||
// walkNodes calls fn once per contained node, passing the dot path that reaches it,
|
||||
// visiting keys in sorted order so which of several broken nodes gets reported does
|
||||
// not depend on map iteration. fn runs before a node's children, so a binding it
|
||||
// adds to a template's fields is walked too.
|
||||
// not depend on map iteration.
|
||||
func walkNodes(root map[string]node, fn func(path string, n node) error) error {
|
||||
seen := map[node]bool{}
|
||||
var visit func(string, node) error
|
||||
|
||||
Reference in New Issue
Block a user