diff options
| author | Diogo Pinela <diogoid7400@gmail.com> | 2019-03-28 20:35:28 +0000 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2024-07-11 00:10:03 +0000 |
| commit | dfaaa91f0537f806a02ff2dd71b79844cd16cc4e (patch) | |
| tree | 409392a3f76d743c15251d4b1d04f3327b165296 /src/database/sql/driver/driver.go | |
| parent | 5881d857c573874bde9417e97df3267f19c7ecb6 (diff) | |
| download | go-dfaaa91f0537f806a02ff2dd71b79844cd16cc4e.tar.xz | |
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>
Diffstat (limited to 'src/database/sql/driver/driver.go')
0 files changed, 0 insertions, 0 deletions
