Skip to content

Commit 2da409a

Browse files
authored
Rename a variable in a test (#590)
1 parent 045a3bd commit 2da409a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ func (s {{ $enum.Name }}) String() string { return {{ $enum.Name | toLower }}Ite
288288
289289
func (s *{{ $enum.Name }}) Deserialize(str string) {
290290
var found bool
291-
for i, st := range {{ $enum.Name | toLower }}Items {
292-
if st == str {
291+
for i, v := range {{ $enum.Name | toLower }}Items {
292+
if v == str {
293293
found = true
294294
(*s) = {{ $enum.Name }}(i)
295295
}
@@ -361,8 +361,8 @@ func (s *{{ $enum.Name }}) UnmarshalGraphQL(input interface{}) error {
361361
//
362362
// func (s *Season) Deserialize(str string) {
363363
// var found bool
364-
// for i, st := range seasonItems {
365-
// if st == str {
364+
// for i, v := range seasonItems {
365+
// if v == str {
366366
// found = true
367367
// (*s) = Season(i)
368368
// }

0 commit comments

Comments
 (0)