Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Stringer panic check to look like stdlib (uber-go#857)
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.
- Loading branch information