diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-28 20:18:30 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-28 20:18:30 +0900 |
| commit | cd9b534d6b1d432d3c997ccc5b14f630afb9dda6 (patch) | |
| tree | fcf2e26356d614bb081e94285a1a8eb19cb8283c /container/errors.go | |
| parent | 84e6922f3073ec09756df6075a801529ecd202f6 (diff) | |
container: improve documentation
This change removes inconsistencies collected over time in this package.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/errors.go')
| -rw-r--r-- | container/errors.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/container/errors.go b/container/errors.go index d7651aa9..150dcd13 100644 --- a/container/errors.go +++ b/container/errors.go @@ -43,7 +43,8 @@ func messageFromError(err error) (m string, ok bool) { } // messagePrefix checks and prefixes the error message of a non-pointer error. -// While this is usable for pointer errors, such use should be avoided as nil check is omitted. +// While this is usable for pointer errors, such use should be avoided as nil +// check is omitted. func messagePrefix[T error](prefix string, err error) (string, bool) { var targetError T if errors.As(err, &targetError) { |
