Answer prose round 1: pickKey names its two roots, readUnder says when it reads, levelKeys, draw and readField read on one pass, and the allocation case is named for what it reads

This commit is contained in:
2026-10-05 23:39:36 +02:00
committed by Lillem4n
parent 93c96968dc
commit c814d36985
5 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ func pathArm(name, head, writtenHead string, segs []string) arm {
return arm{spelling: name, head: head, writtenHead: writtenHead, tail: segs, levels: levelKeys(append([]string{head}, segs...), 1)}
}
// levelKeys keys each prefix of path, from its first from segments to the whole of it.
// levelKeys is the key of each prefix of path holding at least from segments, shortest first.
func levelKeys(path []string, from int) []pickKey {
levels := make([]pickKey, len(path)-from+1)
for i := range levels {