]> Cypherpunks.ru repositories - gostls13.git/commit
strconv: document parsing of leading +/-
authorDamien Neil <dneil@google.com>
Mon, 7 Jun 2021 23:30:03 +0000 (16:30 -0700)
committerDamien Neil <dneil@google.com>
Wed, 9 Jun 2021 18:16:27 +0000 (18:16 +0000)
commit1402b27d465d9949027a048ea2c86a3583400b4c
tree48a74a572135e47a00c1794b21a5167834482ca2
parentdf35ade067f22ef1f3aad3c2f3576997ff9646b4
strconv: document parsing of leading +/-

Explicitly document the handling of a sign prefix, and the interaction
between the sign and base prefixes.

Fixes #46641.

Change-Id: I3cd6773e3f074fe671a944a05a79d2408137fcd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/325875
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/strconv/atoi.go
src/strconv/atoi_test.go