Skip to content

Commit

Permalink
cmd/compile/internal/scanner: report correct directive string (fix bu…
Browse files Browse the repository at this point in the history
…ild)

Change-Id: I01b244e97e4140545a46b3d494489a30126c2139
Reviewed-on: https://go-review.googlesource.com/c/go/+/222257
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
  • Loading branch information
griesemer committed Mar 5, 2020
1 parent bda42a7 commit 55d4cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/syntax/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func (s *scanner) rawString() {
}

func (s *scanner) comment(text string) {
s.errorAtf(0, text)
s.errorAtf(0, "%s", text)
}

func (s *scanner) skipLine() {
Expand Down

0 comments on commit 55d4cbf

Please sign in to comment.