Skip to content

Commit f2f4f3a

Browse files
authored
Add doc to explain return value with after clauses (#13783)
1 parent 07137a1 commit f2f4f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/getting-started/try-catch-and-rescue.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ cleaning up!
232232
** (RuntimeError) oops
233233
```
234234

235-
Elixir will automatically wrap the function body in a `try` whenever one of `after`, `rescue` or `catch` is specified.
235+
Elixir will automatically wrap the function body in a `try` whenever one of `after`, `rescue` or `catch` is specified. The `after` block handles side effects and does not change the return value from the clauses above it.
236236

237237
## Else
238238

0 commit comments

Comments
 (0)