Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Stringer panic check to look like stdlib #857

Merged
merged 1 commit into from Aug 28, 2020
Merged

Commits on Aug 28, 2020

  1. Update Stringer panic check to look like stdlib

    There's no behaviour changes, but there are a couple of refactorings:
     * Name the named return error `retErr`, and use explicit return
       values. The only purpose of the named return is for the panic
       handling.
     * Make the panic handling look more similar to the standard library
       and add a reference to the stdlib code in fmt that does the
       same checks.
    prashantv committed Aug 28, 2020
    Copy the full SHA
    6fc7f21 View commit details
    Browse the repository at this point in the history