Skip to content

Commit 55d4cbf

Browse files
committed
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 <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent bda42a7 commit 55d4cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/compile/internal/syntax/scanner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ func (s *scanner) rawString() {
704704
}
705705

706706
func (s *scanner) comment(text string) {
707-
s.errorAtf(0, text)
707+
s.errorAtf(0, "%s", text)
708708
}
709709

710710
func (s *scanner) skipLine() {

0 commit comments

Comments
 (0)