Skip to content

Commit 872ab78

Browse files
traviscrossehuss
authored andcommitted
Use edition block syntax
Let's switch the let chains update to use our the markdown syntax for edition differences.
1 parent 3abb0e3 commit 872ab78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/expressions/if-expr.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ if let Some(x) = foo && (condition1 || condition2) { /*...*/ }
160160
```
161161

162162
r[expr.if.edition2024]
163-
> **Edition differences**: Before the 2024 edition, let chains are not supported and only a single _IfCondition_ is allowed in an `if` expression.
163+
> [!EDITION-2024]
164+
> Before the 2024 edition, let chains are not supported and only a single _IfCondition_ is allowed in an `if` expression.
164165
165166
[_BlockExpression_]: block-expr.md
166167
[_Expression_]: ../expressions.md

0 commit comments

Comments
 (0)