Build the walk root in New, drop the categories copy, and correct the node and renders comments

This commit is contained in:
2026-09-29 04:34:50 +02:00
committed by Lillem4n
parent d519a61f58
commit c422c9e436
12 changed files with 24 additions and 31 deletions
+2 -3
View File
@@ -152,9 +152,8 @@ func isFixed(n node) bool {
}
// renders reports whether rendering n can reach anything in want, following the
// same edges expand does. seen keeps a node shared by several routes from being
// walked twice; checkNoCycles has already proved the graph is a DAG, so the walk
// ends.
// same edges expand does. seen keeps a node from being walked twice, so the walk
// ends across a cycle too.
func renders(n node, want, seen map[node]bool) bool {
if want[n] {
return true