diff --git a/stew/results.nim b/stew/results.nim index 53c8c06..99bb5e2 100644 --- a/stew/results.nim +++ b/stew/results.nim @@ -722,6 +722,7 @@ template `[]`*[T: not void, E](self: Result[T, E]): T = template `[]`*[E](self: Result[void, E]) = ## Fetch value of result if set, or raise Defect ## Exception bridge mode: raise given Exception instead + self.get() template `[]`*[T: not void, E](self: var Result[T, E]): var T = ## Fetch value of result if set, or raise Defect