aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2020-03-05 12:55:44 -0800
committerRobert Griesemer <gri@golang.org>2020-03-05 21:06:19 +0000
commit55d4cbfbe10c11e56e1642cbb6b108eaf2620e09 (patch)
tree45e75af471d1f6eae9bbbfb430267473286e1c07 /src/cmd/compile/internal/syntax
parentbda42a7a782dbcf4b123d617c5b60f3c848cbb82 (diff)
downloadgo-55d4cbfbe10c11e56e1642cbb6b108eaf2620e09.tar.gz
go-55d4cbfbe10c11e56e1642cbb6b108eaf2620e09.zip
cmd/compile/internal/scanner: report correct directive string (fix build)
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>
Diffstat (limited to 'src/cmd/compile/internal/syntax')
-rw-r--r--src/cmd/compile/internal/syntax/scanner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/syntax/scanner.go b/src/cmd/compile/internal/syntax/scanner.go
index 2ce6203dd9..fc2efcced2 100644
--- a/src/cmd/compile/internal/syntax/scanner.go
+++ b/src/cmd/compile/internal/syntax/scanner.go
@@ -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() {