summaryrefslogtreecommitdiffhomepage
path: root/tools/go_generics
diff options
context:
space:
mode:
Diffstat (limited to 'tools/go_generics')
-rw-r--r--tools/go_generics/defs.bzl2
-rw-r--r--tools/go_generics/generics.go7
2 files changed, 5 insertions, 4 deletions
diff --git a/tools/go_generics/defs.bzl b/tools/go_generics/defs.bzl
index 596bf51be..c5be52ecd 100644
--- a/tools/go_generics/defs.bzl
+++ b/tools/go_generics/defs.bzl
@@ -132,7 +132,7 @@ go_template_instance = rule(
"types": attr.string_dict(),
"consts": attr.string_dict(),
"imports": attr.string_dict(),
- "anon": attr.bool(mandatory=False, default=False),
+ "anon": attr.bool(mandatory = False, default = False),
"package": attr.string(mandatory = True),
"out": attr.output(mandatory = True),
"_tool": attr.label(executable = True, cfg = "host", default = Label("//tools/go_generics")),
diff --git a/tools/go_generics/generics.go b/tools/go_generics/generics.go
index e3912ef2a..e9cc2c753 100644
--- a/tools/go_generics/generics.go
+++ b/tools/go_generics/generics.go
@@ -82,9 +82,10 @@
// Note that the second call to g() kept "b" as an argument because it refers to
// the local variable "b".
//
-// Note that go_generics can handle anonymous fields with renamed types if -anon is passed in,
-// however it does not perform strict checking on parameter types that share the same name
-// as the global type and therefore will rename them as well.
+// Note that go_generics can handle anonymous fields with renamed types if
+// -anon is passed in, however it does not perform strict checking on parameter
+// types that share the same name as the global type and therefore will rename
+// them as well.
//
// You can see an example in the tools/go_generics/generics_tests/interface test.
package main