@@ -30,7 +30,7 @@ func (q *PathQuery) String() string {
3030 return buf .String ()
3131}
3232
33- // writeTo writes a string representation of fq to buf. Defined by
33+ // writeTo writes a string representation of q to buf. Defined by
3434// [stringWriter].
3535func (q * PathQuery ) writeTo (buf * strings.Builder ) {
3636 if q .root {
@@ -117,13 +117,13 @@ func (q *PathQuery) Expression() FuncExprArg {
117117 return q
118118}
119119
120- // evaluate returns a [NodesType] containing the result of executing fq .
120+ // evaluate returns a [NodesType] containing the result of executing q .
121121// Defined by the [FuncExprArg] interface.
122122func (q * PathQuery ) evaluate (current , root any ) PathValue {
123123 return NodesType (q .Select (current , root ))
124124}
125125
126- // ResultType returns [FuncValue] if fq is a singular query, and [FuncNodes]
126+ // ResultType returns [FuncValue] if q is a singular query, and [FuncNodes]
127127// if it is not. Defined by the [FuncExprArg] interface.
128128func (q * PathQuery ) ResultType () FuncType {
129129 if q .isSingular () {
@@ -132,7 +132,7 @@ func (q *PathQuery) ResultType() FuncType {
132132 return FuncNodes
133133}
134134
135- // ConvertsTo returns true if fq 's result can be converted to ft. A singular
135+ // ConvertsTo returns true if q 's result can be converted to ft. A singular
136136// query can be converted to either [FuncValue] or [FuncNodes]. All other
137137// queries can only be converted to FuncNodes.
138138func (q * PathQuery ) ConvertsTo (ft FuncType ) bool {
0 commit comments