Error message typo
This commit is contained in:
parent
188230a368
commit
11aeb996ab
|
@ -285,9 +285,9 @@ func raiseResultDefect(m: string) {.noreturn, noinline.} =
|
||||||
template assertOk(self: Result) =
|
template assertOk(self: Result) =
|
||||||
if not self.o:
|
if not self.o:
|
||||||
when self.E isnot void:
|
when self.E isnot void:
|
||||||
raiseResultDefect("Trying to acces value with err Result", self.e)
|
raiseResultDefect("Trying to access value with err Result", self.e)
|
||||||
else:
|
else:
|
||||||
raiseResultDefect("Trying to acces value with err Result")
|
raiseResultDefect("Trying to access value with err Result")
|
||||||
|
|
||||||
template ok*[T, E](R: type Result[T, E], x: auto): R =
|
template ok*[T, E](R: type Result[T, E], x: auto): R =
|
||||||
## Initialize a result with a success and value
|
## Initialize a result with a success and value
|
||||||
|
|
Loading…
Reference in New Issue