Skip to content

Commit

Permalink
Fix RFC 243 code blocks and add note
Browse files Browse the repository at this point in the history
This fixes the code blocks that broke in the previous commit and adds a note about rfc 2046 `label-break-value`
  • Loading branch information
mbartlett21 committed Oct 7, 2022
1 parent 79fa41c commit f6a6669
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit f6a6669

Please sign in to comment.