Error message typo

This commit is contained in:
Mamy Ratsimbazafy 2020-06-23 19:46:18 +02:00 committed by GitHub
parent 188230a368
commit 11aeb996ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -285,9 +285,9 @@ func raiseResultDefect(m: string) {.noreturn, noinline.} =
template assertOk(self: Result) =
if not self.o:
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:
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 =
## Initialize a result with a success and value