Say an arm's key is what template.head resolves
This commit is contained in:
+2
-2
@@ -268,8 +268,8 @@ func fieldTokens(format string) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// arm is one alternative of a {a|b} token or one operand, split into the key
|
// arm is one alternative of a {a|b} token or one operand, split into the key
|
||||||
// naming the node in a template's fields (a sibling field, or the head a
|
// `template.head` resolves (a sibling field, or the head a reference is bound
|
||||||
// reference is bound under) and the tail of a dotted path into it. A non-empty
|
// under) and the tail of a dotted path into it. A non-empty
|
||||||
// tail is what makes the arm a bound draw: its head is drawn once per expansion
|
// tail is what makes the arm a bound draw: its head is drawn once per expansion
|
||||||
// (see compileOps).
|
// (see compileOps).
|
||||||
type arm struct {
|
type arm struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user