From: Ian Lance Taylor Date: Fri, 31 Jan 2020 03:22:15 +0000 (-0800) Subject: doc/go1.14: mention new method strconv.NumError.Unwrap X-Git-Tag: go1.14rc1~21 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6c0545ab833b2b834f351e59242a3ea64051fa3a;p=gostls13.git doc/go1.14: mention new method strconv.NumError.Unwrap Updates #30322 Updates #36878 Change-Id: I8b33eb6a8fb7c0ecf365940a1c3ae88dc807ebcd Reviewed-on: https://go-review.googlesource.com/c/go/+/217132 Reviewed-by: Bryan C. Mills --- diff --git a/doc/go1.14.html b/doc/go1.14.html index 7e74c7a69b..26644cca59 100644 --- a/doc/go1.14.html +++ b/doc/go1.14.html @@ -694,6 +694,23 @@ TODO +
strconv
+
+

+ The NumError + type now has + an Unwrap + method that may be used to retrieve the reason that a conversion + failed. + This supports using NumError values + with errors.Is to see + if the underlying error + is strconv.ErrRange + or strconv.ErrSyntax. +

+
+
+
sync