From 216393895f679907d0bd834e38c56dd121036303 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sat, 15 Oct 2022 17:57:21 -0700 Subject: [PATCH] Documentation update --- doc/leaf.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/leaf.adoc b/doc/leaf.adoc index 15872cc..5e06641 100644 --- a/doc/leaf.adoc +++ b/doc/leaf.adoc @@ -229,7 +229,7 @@ leaf::result r = leaf::try_handle_some( []( leaf::match ) -> leaf::result { - // Handle err::e1 + // Handle err::e1 or err1::e3 }, []( err1 e ) -> leaf::result @@ -432,7 +432,7 @@ leaf::result r = leaf::try_handle_some( An error handler is never dropped for lack of error objects of types which the handler takes as pointers; in this case LEAF simply passes `0` for these arguments. -TIP: Error handlers can take arguments by value, by const reference or pointer, and by mutable reference or pointer. It the latter case, changes to the error object state will be propagated up the call stack if the failure is not handled. +TIP: Error handlers can take arguments by value, by (`const`) reference or as a (`const`) pointer. It the latter case, changes to the error object state will be propagated up the call stack if the failure is not handled. [[tutorial-augmenting_errors]] === Augmenting Errors