diff options
author | David Bendory <bendory@users.noreply.github.com> | 2023-03-17 14:04:01 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-03-17 21:12:15 +0000 |
commit | f53a95fe393b0a23592a54cf83e3d25cfa4bdbdb (patch) | |
tree | 2bce8c2840323998efce81a7c3bd1651c707da3b /src/errors | |
parent | 50479b79bcd5920bcbca9698f6a382660bb53179 (diff) | |
download | go-f53a95fe393b0a23592a54cf83e3d25cfa4bdbdb.tar.gz go-f53a95fe393b0a23592a54cf83e3d25cfa4bdbdb.zip |
errors: clarify Join documentation
The previous documentation used a double-negative in describing Join behavior; this use of language could be confusing.
This update removes the double-negative.
Change-Id: If13e88682e865314a556e7d381143a97fa5486d9
GitHub-Last-Rev: 92b3f88a5d49229e71adafcfa7b1d01dcb7646f3
GitHub-Pull-Request: golang/go#59082
Reviewed-on: https://go-review.googlesource.com/c/go/+/477095
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/errors')
-rw-r--r-- | src/errors/join.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors/join.go b/src/errors/join.go index dc5a716aa6..329082a5e3 100644 --- a/src/errors/join.go +++ b/src/errors/join.go @@ -6,7 +6,7 @@ package errors // Join returns an error that wraps the given errors. // Any nil error values are discarded. -// Join returns nil if errs contains no non-nil values. +// Join returns nil if every value in errs is nil. // The error formats as the concatenation of the strings obtained // by calling the Error method of each element of errs, with a newline // between each string. |