Skip to content

Commit d9e79e4

Browse files
committed
s/try/catch
1 parent 00e839f commit d9e79e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

active/0243-trait-based-exception-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ behavior of exception-handling code.
128128

129129
Note that `catch { foo()? }` is essentially equivalent to `foo()`.
130130
`catch` can be useful if you want to coalesce *multiple* potential
131-
exceptions -- `try { foo()?.bar()?.baz()? }` -- into a single
131+
exceptions -- `catch { foo()?.bar()?.baz()? }` -- into a single
132132
`Result`, which you wish to then e.g. pass on as-is to another
133133
function, rather than analyze yourself. (The last example could also
134134
be expressed using a series of `and_then` calls.)

0 commit comments

Comments
 (0)