Skip to content

Use underlying type in default case in CompletionCode stringer#2

Open
david-fritz-gravwell wants to merge 1 commit into
k-sone:masterfrom
david-fritz-gravwell:patch-1
Open

Use underlying type in default case in CompletionCode stringer#2
david-fritz-gravwell wants to merge 1 commit into
k-sone:masterfrom
david-fritz-gravwell:patch-1

Conversation

@david-fritz-gravwell
Copy link
Copy Markdown

Not using the underlying type results in a stack overflow, as fmt.Sprintf will call the type's stringer regardless of formatting options. Use the underlying uint8 type instead.

Not using the underlying type results in a stack overflow, as fmt.Sprintf will call the type's stringer regardless of formatting options. Use the underlying uint8 type instead.
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.

1 participant