]> Cypherpunks repositories - gostls13.git/commit
os: clarify that IsNotExist, IsExist, IsPermission and IsTimeout work with nil errors
authorDiogo Pinela <diogoid7400@gmail.com>
Thu, 28 Mar 2019 20:35:28 +0000 (20:35 +0000)
committerJonathan Amsterdam <jba@google.com>
Thu, 11 Jul 2024 00:10:03 +0000 (00:10 +0000)
commitdfaaa91f0537f806a02ff2dd71b79844cd16cc4e
tree409392a3f76d743c15251d4b1d04f3327b165296
parent5881d857c573874bde9417e97df3267f19c7ecb6
os: clarify that IsNotExist, IsExist, IsPermission and IsTimeout work with nil errors

Referring to these functions' parameter as "*the* error" could be taken
to imply that a non-nil error from elsewhere is expected; referring to
it as "its argument" avoids that ambiguity.

Fixes #31065

Change-Id: I117892dd53fff6f92d11a416e4abedee5d2f9337
Reviewed-on: https://go-review.googlesource.com/c/go/+/170077
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
src/os/error.go