Skip to content

Commit

Permalink
Merge branch 'fix/example-struct-level'
Browse files Browse the repository at this point in the history
  • Loading branch information
parviz-yu committed Feb 26, 2024
2 parents b328f72 + c65768f commit 709d4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/struct-level/main.go
Expand Up @@ -36,7 +36,7 @@ func (gender Gender) String() string {
if gender < Male || gender > Intersex {
return "unknown"
}
return terms[gender]
return terms[gender-1]
}

// User contains user information
Expand Down

0 comments on commit 709d4cc

Please sign in to comment.