summaryrefslogtreecommitdiffhomepage
path: root/tools/go_generics
diff options
context:
space:
mode:
authorTing-Yu Wang <anivia@google.com>2020-11-03 15:21:38 -0800
committergVisor bot <gvisor-bot@google.com>2020-11-03 15:23:32 -0800
commit1cfa8d58f6ffd7202fe445c2986f0366022d46f9 (patch)
tree2619c494296a36e308b375fc01e7e5bf856073f4 /tools/go_generics
parent580bbb749747e8c8bbf4dfe60c15676c85065a6a (diff)
Fix more nogo tests
PiperOrigin-RevId: 340536306
Diffstat (limited to 'tools/go_generics')
-rw-r--r--tools/go_generics/imports.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/go_generics/imports.go b/tools/go_generics/imports.go
index 90d3aa1e0..370650e46 100644
--- a/tools/go_generics/imports.go
+++ b/tools/go_generics/imports.go
@@ -48,7 +48,7 @@ func updateImportIdent(orig string, imports mapValue, id *ast.Ident, used map[st
// Create a new entry in the used map.
path := imports[importName]
if path == "" {
- return fmt.Errorf("Unknown path to package '%s', used in '%s'", importName, orig)
+ return fmt.Errorf("unknown path to package '%s', used in '%s'", importName, orig)
}
m = &importedPackage{
@@ -72,7 +72,7 @@ func convertExpression(s string, imports mapValue, used map[string]*importedPack
// Parse the expression in the input string.
expr, err := parser.ParseExpr(s)
if err != nil {
- return "", fmt.Errorf("Unable to parse \"%s\": %v", s, err)
+ return "", fmt.Errorf("unable to parse \"%s\": %v", s, err)
}
// Go through the AST and update references.