]> Cypherpunks repositories - gostls13.git/commit
strconv: unify error creation in ParseUint with ParseInt
authorMartin Möhrmann <moehrmann@google.com>
Sat, 12 Aug 2017 19:24:07 +0000 (21:24 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Mon, 14 Aug 2017 21:02:21 +0000 (21:02 +0000)
commitdd6880d69b4c515246cdcba85cfea61260adcdd1
tree99cd4892eb918d5b92362d71b3f73f985b74a099
parent566f390cfaf5cf4c0cc86df73c536b3ddefb6621
strconv: unify error creation in ParseUint with ParseInt

Remove goto and use helper functions in ParseUint to create errors.

Change-Id: I1c4677ae1b9980db79065a9f8ca1f2c470249505
Reviewed-on: https://go-review.googlesource.com/55135
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
src/strconv/atoi.go