fix: typo

This commit is contained in:
2024-09-16 07:52:50 +02:00
parent 4d974d086f
commit 23a8a9ee04

View File

@@ -32,7 +32,7 @@ func (res Result[T]) Unwrap() T {
if res.err == nil { if res.err == nil {
return res.value return res.value
} }
panic("Tried unwrapping a Result that had an error a value!") panic("Tried unwrapping a Result that had an error value!")
} }
func (res Result[T]) Unwrap_or(val T) T { func (res Result[T]) Unwrap_or(val T) T {