Skip to content

Commit 2163938

Browse files
committed
Documentation update
1 parent 9d3ffa0 commit 2163938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/leaf.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ leaf::result<U> r = leaf::try_handle_some(
229229
230230
[]( leaf::match<err1, err1::e1, err1::e3> ) -> leaf::result<U>
231231
{
232-
// Handle err::e1
232+
// Handle err::e1 or err1::e3
233233
},
234234
235235
[]( err1 e ) -> leaf::result<U>
@@ -432,7 +432,7 @@ leaf::result<U> r = leaf::try_handle_some(
432432

433433
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.
434434

435-
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.
435+
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.
436436

437437
[[tutorial-augmenting_errors]]
438438
=== Augmenting Errors

0 commit comments

Comments
 (0)