Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Mar 11, 2024
1 parent f50d2bc commit d57d855
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions results.nim
Original file line number Diff line number Diff line change
Expand Up @@ -317,26 +317,26 @@ type
# public!
when T is void:
when E is void:
oResultPrivate*: bool
oResultPrivate: bool
else:
case oResultPrivate*: bool
case oResultPrivate: bool
of false:
eResultPrivate*: E
eResultPrivate: E
of true:
discard
else:
when E is void:
case oResultPrivate*: bool
case oResultPrivate: bool
of false:
discard
of true:
vResultPrivate*: T
vResultPrivate: T
else:
case oResultPrivate*: bool
case oResultPrivate: bool
of false:
eResultPrivate*: E
eResultPrivate: E
of true:
vResultPrivate*: T
vResultPrivate: T

Opt*[T] = Result[T, void]

Expand Down

0 comments on commit d57d855

Please sign in to comment.