summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2020-02-14 11:49:40 +0100
committerSverker Eriksson <sverker@erlang.org>2020-02-14 11:49:40 +0100
commitf5be42b9011e8cff13a410aea9efa2bf14f38994 (patch)
treea5672130bfc2695aa885fca78a9733ab8745908d /system
parent0db79f109d3ca37f5729835809bc9caaed70ba65 (diff)
downloaderlang-f5be42b9011e8cff13a410aea9efa2bf14f38994.tar.gz
Clarify try-of documentation
Diffstat (limited to 'system')
-rw-r--r--system/doc/reference_manual/expressions.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml
index baa1269470..ea152801d7 100644
--- a/system/doc/reference_manual/expressions.xml
+++ b/system/doc/reference_manual/expressions.xml
@@ -1414,9 +1414,10 @@ end</code>
the patterns <c>Pattern</c> are sequentially matched against
the result in the same way as for a
<seealso marker="#case">case</seealso> expression, except that if
- the matching fails, a <c>try_clause</c> run-time error occurs.</p>
- <p>An exception occurring during the evaluation of <c>Body</c> is
- not caught.</p>
+ the matching fails, a <c>try_clause</c> run-time error occurs instead of a
+ <c>case_clause</c>.</p>
+ <p>An exception occurring during the evaluation of <c>Body</c> is not
+ caught. Neither is a failed match <c>try_clause</c> exception.</p>
<p>The <c>try</c> expression can also be augmented with an
<c>after</c> section, intended to be used for cleanup with side
effects:</p>