From f1247b104a0dba8226c443d876737ee924db6a1d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 21 Mar 2025 14:58:42 +0800 Subject: misc: Remove underscores --- misc/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc/errors.go') diff --git a/misc/errors.go b/misc/errors.go index 8434637..190f8ba 100644 --- a/misc/errors.go +++ b/misc/errors.go @@ -2,11 +2,11 @@ package misc import "fmt" -func Wrap_one_error(a error, b error) error { +func WrapOneError(a error, b error) error { return fmt.Errorf("%w: %w", a, b) } -func First_or_panic[T any](v T, err error) T { +func FirstOrPanic[T any](v T, err error) T { if err != nil { panic(err) } -- cgit v1.2.3