From cd9b534d6b1d432d3c997ccc5b14f630afb9dda6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 28 Feb 2026 20:18:30 +0900 Subject: container: improve documentation This change removes inconsistencies collected over time in this package. Signed-off-by: Ophestra --- container/errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'container/errors.go') 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) { -- cgit v1.3.1