Resolve TODO about curly-braced constructions in expression statement

This commit is contained in:
veetaha 2020-05-10 21:50:24 +03:00
parent 1677f35ef1
commit a1dc28f236
2 changed files with 6 additions and 2 deletions

View file

@ -2076,9 +2076,11 @@ impl Abi {}
/// ❰ (); ❱
/// ❰ {}; ❱
///
/// // constructions with trailing curly brace can omit the semicolon // TODO: clarify
/// // constructions with trailing curly brace can omit the semicolon
/// // but only when there are satements immediately after them (this is important!)
/// ❰ if bool_cond { } ❱
/// ❰ loop {} ❱
/// ❰ somestatment; ❱
/// ```
///
/// [Reference](https://doc.rust-lang.org/reference/statements.html)

View file

@ -1722,9 +1722,11 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
/// ❰ (); ❱
/// ❰ {}; ❱
///
/// // constructions with trailing curly brace can omit the semicolon // TODO: clarify
/// // constructions with trailing curly brace can omit the semicolon
/// // but only when there are satements immediately after them (this is important!)
/// ❰ if bool_cond { } ❱
/// ❰ loop {} ❱
/// ❰ somestatment; ❱
/// ```
///
/// [Reference](https://doc.rust-lang.org/reference/statements.html)