Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RFC 243 code blocks and add note #3110

Merged
merged 1 commit into from
Oct 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion text/0243-trait-based-exception-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ enclosing block specified by `'a`, which then evaluates to the value `EXPR` (of
course, the type of `EXPR` must unify with the type of the last expression in
that block). This works for any block, not only loops.

\[Note: This was since added in [RFC 2046](/~https://github.com/rust-lang/rfcs/blob/master/text/2046-label-break-value.md)]

A completely artificial example:

```rust
Expand Down Expand Up @@ -296,7 +298,7 @@ as follows:
}
```

Shallow:
Shallow:

```rust
match (catch {
Expand Down