aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2019-09-04 11:40:03 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2019-09-04 15:10:03 +0000
commit033299fab66b08d434be30e05d11f7db63efa71c (patch)
tree614083444f4fd0ccdca0c7ba927a10e875560c29 /src
parent14521198679e2c600fd9b5a2da51ff2685f314c1 (diff)
downloadgo-033299fab66b08d434be30e05d11f7db63efa71c.tar.xz
all: add a space before +build in build tag comments
Add a space before build tag comments so it corresponds to the format documented at https://golang.org/pkg/go/build/. Change-Id: I8349d0343597e304b97fb5479847231ed8945b1a Reviewed-on: https://go-review.googlesource.com/c/go/+/193237 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/go/internal/modload/testgo.go2
-rw-r--r--src/cmd/go/internal/renameio/renameio_test.go2
-rw-r--r--src/cmd/go/internal/renameio/umask_test.go2
-rw-r--r--src/cmd/go/internal/robustio/robustio_other.go2
-rw-r--r--src/cmd/go/internal/web/url_other.go2
-rw-r--r--src/cmd/go/internal/web/url_other_test.go2
-rw-r--r--src/cmd/go/testdata/script/test_compile_binary.txt2
-rw-r--r--src/runtime/semasleep_test.go2
8 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/go/internal/modload/testgo.go b/src/cmd/go/internal/modload/testgo.go
index 663b24a68d..6b34f5be39 100644
--- a/src/cmd/go/internal/modload/testgo.go
+++ b/src/cmd/go/internal/modload/testgo.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//+build testgo
+// +build testgo
package modload
diff --git a/src/cmd/go/internal/renameio/renameio_test.go b/src/cmd/go/internal/renameio/renameio_test.go
index 81dba6d545..ace6e493cb 100644
--- a/src/cmd/go/internal/renameio/renameio_test.go
+++ b/src/cmd/go/internal/renameio/renameio_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//+build !plan9
+// +build !plan9
package renameio
diff --git a/src/cmd/go/internal/renameio/umask_test.go b/src/cmd/go/internal/renameio/umask_test.go
index 1a471c9e4e..031fe46e09 100644
--- a/src/cmd/go/internal/renameio/umask_test.go
+++ b/src/cmd/go/internal/renameio/umask_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//+build !nacl,!plan9,!windows,!js
+// +build !nacl,!plan9,!windows,!js
package renameio
diff --git a/src/cmd/go/internal/robustio/robustio_other.go b/src/cmd/go/internal/robustio/robustio_other.go
index 91ca56cb82..56e6ad6d9c 100644
--- a/src/cmd/go/internal/robustio/robustio_other.go
+++ b/src/cmd/go/internal/robustio/robustio_other.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//+build !windows
+// +build !windows
package robustio
diff --git a/src/cmd/go/internal/web/url_other.go b/src/cmd/go/internal/web/url_other.go
index bd243e591a..2641ee62bf 100644
--- a/src/cmd/go/internal/web/url_other.go
+++ b/src/cmd/go/internal/web/url_other.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//+build !windows
+// +build !windows
package web
diff --git a/src/cmd/go/internal/web/url_other_test.go b/src/cmd/go/internal/web/url_other_test.go
index b4a74d94b9..aa5663355e 100644
--- a/src/cmd/go/internal/web/url_other_test.go
+++ b/src/cmd/go/internal/web/url_other_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//+build !windows
+// +build !windows
package web
diff --git a/src/cmd/go/testdata/script/test_compile_binary.txt b/src/cmd/go/testdata/script/test_compile_binary.txt
index 6562f2453f..63bb8ec3e7 100644
--- a/src/cmd/go/testdata/script/test_compile_binary.txt
+++ b/src/cmd/go/testdata/script/test_compile_binary.txt
@@ -4,5 +4,5 @@ env GO111MODULE=off
stderr 'build comment'
-- compile_binary/foo_test.go --
-//+build foo
+// +build foo
package foo
diff --git a/src/runtime/semasleep_test.go b/src/runtime/semasleep_test.go
index f5b4a50697..3eb7c6a6d1 100644
--- a/src/runtime/semasleep_test.go
+++ b/src/runtime/semasleep_test.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//+build !nacl,!plan9,!windows,!js
+// +build !nacl,!plan9,!windows,!js
package runtime_test