lean4-metaprogramming-book
lean4-metaprogramming-book copied to clipboard
Typo in `MetaM` chapter: the signature of `Lean.commitIfNoEx` is wrong
trafficstars
in https://leanprover-community.github.io/lean4-metaprogramming-book/main/04_metam.html#backtracking ,
Lean.commitIfNoEx (x : α) : m αexecutesx. Ifxsucceeds,commitIfNoExreturns its result. Ifxthrows an exception,commitIfNoExbacktracks the state and rethrows the exception.
the actual signature is Lean.commitIfNoEx (x : m α) : m α.