mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/asm/internal/lex: format error correctly
Error doesn't take a format string and appends its own newline. Phrase the error like the other ones. Change-Id: Ic3af857e5d4890207c74a6eb59a0d1067b503e1b Reviewed-on: https://go-review.googlesource.com/16420 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
11cf5da0e3
commit
53d42fbead
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ func (in *Input) macroDefinition(name string) ([]string, []Token) {
|
|||
// Scan to newline. Backslashes escape newlines.
|
||||
for tok != '\n' {
|
||||
if tok == scanner.EOF {
|
||||
in.Error("missing newline in macro definition for %q\n", name)
|
||||
in.Error("missing newline in definition for macro:", name)
|
||||
}
|
||||
if tok == '\\' {
|
||||
tok = in.Stack.Next()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue