Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

parviz-yu
Copy link

Accessing an array element at index 3 causes index out of range panic

Fixes Or Enhances

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

Accessing an array element at index 3 causes index out of range panic
@parviz-yu parviz-yu requested a review from a team as a code owner February 26, 2024 16:32
@coveralls
Copy link

Coverage Status

coverage: 74.172%. remained the same
when pulling 709d4cc on parviz-yu:master
into b328f72 on go-playground:master.

@parviz-yu parviz-yu marked this pull request as draft April 29, 2024 11:50
return "unknown"
}
return terms[gender]
return terms[gender-1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to modify line 29 and set 'Male Gender = iota'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.