diff options
| author | cui fliter <imcusg@gmail.com> | 2022-11-14 20:13:10 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-12-03 17:08:51 +0000 |
| commit | 3a7a528c2d7ee0c7b2988a7aee0b9347e973cbed (patch) | |
| tree | 357ab80e81b101c245d07fa4d61be2199ea0a30c /src/cmd/compile/internal/syntax/parser.go | |
| parent | c0497d1a81b1104a3981be33abfd66252cea90c8 (diff) | |
| download | go-3a7a528c2d7ee0c7b2988a7aee0b9347e973cbed.tar.xz | |
all: fix some comments for method
Change-Id: I4cff6b2a1fed6acdf754539c3c53a61eaa3b3f84
Reviewed-on: https://go-review.googlesource.com/c/go/+/450176
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/syntax/parser.go')
| -rw-r--r-- | src/cmd/compile/internal/syntax/parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/syntax/parser.go b/src/cmd/compile/internal/syntax/parser.go index d80b269557..ee9761e4a6 100644 --- a/src/cmd/compile/internal/syntax/parser.go +++ b/src/cmd/compile/internal/syntax/parser.go @@ -217,7 +217,7 @@ func (p *parser) posAt(line, col uint) Pos { return MakePos(p.base, line, col) } -// error reports an error at the given position. +// errorAt reports an error at the given position. func (p *parser) errorAt(pos Pos, msg string) { err := Error{pos, msg} if p.first == nil { @@ -314,7 +314,7 @@ const stopset uint64 = 1<<_Break | 1<<_Type | 1<<_Var -// Advance consumes tokens until it finds a token of the stopset or followlist. +// advance consumes tokens until it finds a token of the stopset or followlist. // The stopset is only considered if we are inside a function (p.fnest > 0). // The followlist is the list of valid tokens that can follow a production; // if it is empty, exactly one (non-EOF) token is consumed to ensure progress. |
