aboutsummaryrefslogtreecommitdiff
path: root/misc/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/errors.go')
-rw-r--r--misc/errors.go4
1 files changed, 2 insertions, 2 deletions
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)
}