]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: produce a properly formatted zversion.go
authorMichael Matloob <matloob@google.com>
Mon, 19 Jan 2015 00:04:47 +0000 (16:04 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 19 Jan 2015 00:35:40 +0000 (00:35 +0000)
gofmt inserts a blank line line between const and var declarations

Change-Id: I3f2ddbd9e66a74eb3f37a2fe641b93820b02229e
Reviewed-on: https://go-review.googlesource.com/3022
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/buildruntime.go

index c0ec2efbd6cae94f00f906d96798b2cc115ffae0..1e6ae823972b564c5989fb7fc4690ec0684bce15 100644 (file)
@@ -27,6 +27,7 @@ func mkzversion(dir, file string) {
                        "\n"+
                        "const defaultGoroot = `%s`\n"+
                        "const theVersion = `%s`\n"+
+                       "\n"+
                        "var buildVersion = theVersion\n", goroot_final, goversion)
 
        writefile(out, file, 0)