Rename String(*token.Map) to Str(*token.Map)

This commit is contained in:
Nigel Tao committed 2017-12-01 11:22:08 +11:00
1 parent 638d8eee77
commit 7601fb45ce
15 files changed
+219 -219

No files matched your search

+3 -3
View File
@@ -123,15 +123,15 @@ func TestCheck(t *testing.T) {
break
}
if got, want := fooBar.QID.String(tm), "foo.bar"; got != want {
if got, want := fooBar.QID.Str(tm), "foo.bar"; got != want {
t.Fatalf("Funcs[0] name: got %q, want %q", got, want)
}
got := [][2]string(nil)
for id, typ := range fooBar.LocalVars {
got = append(got, [2]string{
id.String(tm),
typ.String(tm),
id.Str(tm),
typ.Str(tm),
})
}
sort.Slice(got, func(i, j int) bool {