Browse Source

codec: change //+build to // +build (for consistency with how it is documented)

Ugorji Nwoke 9 years ago
parent
commit
ee31c12242

+ 1 - 1
codec/codecgen_test.go

@@ -1,4 +1,4 @@
-//+build x,codecgen
+// +build x,codecgen
 
 
 package codec
 package codec
 
 

+ 1 - 1
codec/gen-helper.generated.go

@@ -1,4 +1,4 @@
-// //+build ignore
+// // +build ignore
 
 
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Use of this source code is governed by a MIT license found in the LICENSE file.
 // Use of this source code is governed by a MIT license found in the LICENSE file.

+ 1 - 1
codec/gen-helper.go.tmpl

@@ -1,4 +1,4 @@
-// //+build ignore
+// // +build ignore
 
 
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Use of this source code is governed by a MIT license found in the LICENSE file.
 // Use of this source code is governed by a MIT license found in the LICENSE file.

+ 1 - 1
codec/gen.go

@@ -212,7 +212,7 @@ func Gen(w io.Writer, buildTags, pkgName, uid string, useUnsafe bool, ti *TypeIn
 		x.genRefPkgs(t)
 		x.genRefPkgs(t)
 	}
 	}
 	if buildTags != "" {
 	if buildTags != "" {
-		x.line("//+build " + buildTags)
+		x.line("// +build " + buildTags)
 		x.line("")
 		x.line("")
 	}
 	}
 	x.line(`
 	x.line(`

+ 1 - 1
codec/helper_not_unsafe.go

@@ -1,4 +1,4 @@
-//+build !unsafe
+// +build !unsafe
 
 
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Use of this source code is governed by a MIT license found in the LICENSE file.
 // Use of this source code is governed by a MIT license found in the LICENSE file.

+ 1 - 1
codec/helper_unsafe.go

@@ -1,4 +1,4 @@
-//+build unsafe
+// +build unsafe
 
 
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Use of this source code is governed by a MIT license found in the LICENSE file.
 // Use of this source code is governed by a MIT license found in the LICENSE file.

+ 1 - 1
codec/py_test.go

@@ -1,4 +1,4 @@
-//+build x
+// +build x
 
 
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
 // Use of this source code is governed by a MIT license found in the LICENSE file.
 // Use of this source code is governed by a MIT license found in the LICENSE file.