Skip to content

Commit

Permalink
Improve example of with block with multiple objects
Browse files Browse the repository at this point in the history
Emphasize that all disposable objects listed in the first line of `with` block can be used within the block.
  • Loading branch information
i-ky authored Feb 9, 2024
1 parent 02b0145 commit 11bbb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/expressions/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Multiple objects can be set up for disposal:

```pony
with obj = SomeObjectThatNeedsDisposing(), other = SomeOtherDisposableObject() do
// use obj
// use obj and other
end
```

Expand Down

0 comments on commit 11bbb2d

Please sign in to comment.