]> Cypherpunks repositories - gostls13.git/commit
strconv: cleanup variable declarations in ParseUint
authorMartin Möhrmann <moehrmann@google.com>
Sun, 13 Aug 2017 11:00:33 +0000 (13:00 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Tue, 15 Aug 2017 04:24:52 +0000 (04:24 +0000)
commitde7e5d45df866015fa5cb7c9997b2d1119366b9a
tree27d42e538a870d7f768c9250577c3ad63b845d59
parent365594ad59873cd8f7fde5ec158067bf695185ee
strconv: cleanup variable declarations in ParseUint

Move variable declarations closer to their first uses.

Use an additional string variable s0 for error reporting that references
the original input string. This allows the variable s to be modified.

Change-Id: I4725152490ca1dc10c1161ad8ad2f4ae8933493f
Reviewed-on: https://go-review.googlesource.com/55138
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Reviewed-by: Marvin Stenger <marvin.stenger94@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/strconv/atoi.go