summaryrefslogtreecommitdiff
path: root/libgo/go/go/format/internal.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/go/format/internal.go')
-rw-r--r--libgo/go/go/format/internal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/go/format/internal.go b/libgo/go/go/format/internal.go
index 4918681de57..2f3b0e43bac 100644
--- a/libgo/go/go/format/internal.go
+++ b/libgo/go/go/format/internal.go
@@ -72,7 +72,7 @@ func parse(fset *token.FileSet, filename string, src []byte, fragmentOk bool) (
indent = 0
}
// Remove the wrapping.
- // Gofmt has turned the ';' into a '\n'.
+ // Gofmt has turned the "; " into a "\n\n".
// There will be two non-blank lines with indent, hence 2*indent.
src = src[2*indent+len("package p\n\nfunc _() {"):]
// Remove only the "}\n" suffix: remaining whitespaces will be trimmed anyway