]> Cypherpunks repositories - gostls13.git/commit
strconv: add Unwrap to custom error types
authorPantelis Sampaziotis <psampaz@gmail.com>
Tue, 10 Sep 2019 18:43:15 +0000 (18:43 +0000)
committerBryan C. Mills <bcmills@google.com>
Mon, 30 Sep 2019 21:07:51 +0000 (21:07 +0000)
commit0adc89aa962aa116da5540c3248977318d360738
tree4211160049fba32389a6ef218d134bf97b610da0
parentba18c7c42d4fa70e81b2304ccc3b2c01675a3af0
strconv: add Unwrap to custom error types

Updates #30322

This change adds the Unwrap method to NumError. NumError is the only custom error type of the strconv that has a nested exported error.

Change-Id: I8774886348880365a83f72a1d106276def27dffe
GitHub-Last-Rev: 712f3df8842f48f988cebfc527476781a7cf7140
GitHub-Pull-Request: golang/go#34213
Reviewed-on: https://go-review.googlesource.com/c/go/+/194563
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/strconv/atoi.go
src/strconv/atoi_test.go