This commit is contained in:
Jacek Sieka 2020-05-08 12:22:46 +02:00 committed by zah
parent 2d9226464d
commit f125f6e8d1
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ doAssert testQn2().isErr
doAssert testQn3()[]
proc heterOr(): Result[int, int] =
let value = ?(rErr or err(42)) # TODO ? binds more tightly than `or` - can that be fixed?
let value = ? (rErr or err(42)) # TODO ? binds more tightly than `or` - can that be fixed?
doAssert value + 1 == value, "won't reach, ? will shortcut execution"
ok(value)