Skip to content

Commit

Permalink
Fix typos in ast.go docs
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Nov 28, 2023
1 parent 9cf0b5b commit def6dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// Each `Node`s documentation has `pos` and `end` information using the following EBNF.
//
// PosChoice -> PosExpr ("||" PosExpr)*
// PosExpr -> PosAtom (PosOp IntAtom)?
// PosExpr -> PosAtom ("+" IntAtom)?
// PosAtom -> PosVar | NodeExpr "." ("pos" | "end")
// NodeExpr -> NodeAtom | "(" NodeAtom ("??" NodeAtom)* ")"
// NodeAtom -> NodeVar | NodeSliceVar "[" (IntAtom | "$") "]"
Expand Down Expand Up @@ -516,7 +516,7 @@ type Alias struct {
// AS {{.Alias | sql}}
type AsAlias struct {
// pos = As || Alias.pos
// end = Alias.End
// end = Alias.end

As token.Pos // position of "AS" keyword

Expand Down

0 comments on commit def6dc5

Please sign in to comment.