Name resolveLink as what proves splitArm's reference, and the tail it takes

This commit is contained in:
2026-09-29 11:42:43 +02:00
committed by Lillem4n
parent 6b17205159
commit b75e517bda
+1 -1
View File
@@ -326,7 +326,7 @@ func splitArm(name string, refs map[string]refBinding) arm {
} }
return arm{spelling: name, head: head, path: head} return arm{spelling: name, head: head, path: head}
} }
sigil, rest, _ := refShape(name) // linkRefs proved it sigil, rest, _ := refShape(name) // resolveLink proved it, and took b.tail as a suffix of its segments
written, _ := splitPath(rest) written, _ := splitPath(rest)
return pathArm(name, b.head, sigil+joinSegments(written[:len(written)-len(b.tail)]), b.tail) return pathArm(name, b.head, sigil+joinSegments(written[:len(written)-len(b.tail)]), b.tail)
} }