]> Cypherpunks repositories - gostls13.git/commit
cmd/gofmt, go/format: sync internal.go
authorDmitri Shuralyov <dmitshur@golang.org>
Fri, 28 Feb 2020 03:53:18 +0000 (22:53 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 28 Feb 2020 14:23:08 +0000 (14:23 +0000)
commit44286d09c5fcdb703624fad6ce24306294cab1fe
tree25a130fab5efb4029af17de0402636722367d8bd
parenta3fc77aa7e5ce67f647a1bd58a00423102135f16
cmd/gofmt, go/format: sync internal.go

Apply CL 40930 to src/cmd/gofmt/internal.go to bring
it into sync with src/go/format/internal.go.

Also revert '\n' back to "\n\n" in one of the comments,
because the previous text was more accurate.
Gofmt replaces the "; " part of "package p; func _() {"
input with two newline characters, not one.

Updates #11844

Change-Id: I6bb8155a931b793311991d3cd8e006a2931b167a
Reviewed-on: https://go-review.googlesource.com/c/go/+/221497
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/gofmt/internal.go
src/go/format/internal.go