mirror of
https://github.com/status-im/nim-stew.git
synced 2025-01-24 02:50:18 +00:00
oops
This commit is contained in:
parent
9d0f1167ca
commit
b464505b4d
@ -722,6 +722,7 @@ template `[]`*[T: not void, E](self: Result[T, E]): T =
|
|||||||
template `[]`*[E](self: Result[void, E]) =
|
template `[]`*[E](self: Result[void, E]) =
|
||||||
## Fetch value of result if set, or raise Defect
|
## Fetch value of result if set, or raise Defect
|
||||||
## Exception bridge mode: raise given Exception instead
|
## Exception bridge mode: raise given Exception instead
|
||||||
|
self.get()
|
||||||
|
|
||||||
template `[]`*[T: not void, E](self: var Result[T, E]): var T =
|
template `[]`*[T: not void, E](self: var Result[T, E]): var T =
|
||||||
## Fetch value of result if set, or raise Defect
|
## Fetch value of result if set, or raise Defect
|
||||||
|
Loading…
x
Reference in New Issue
Block a user