diff options
Diffstat (limited to 'crates/syntax/src')
-rw-r--r-- | crates/syntax/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/lib.rs b/crates/syntax/src/lib.rs index 51ae3da07..da151e328 100644 --- a/crates/syntax/src/lib.rs +++ b/crates/syntax/src/lib.rs | |||
@@ -215,7 +215,7 @@ impl ast::Attr { | |||
215 | impl ast::Stmt { | 215 | impl ast::Stmt { |
216 | /// Returns `text`, parsed as statement, but only if it has no errors. | 216 | /// Returns `text`, parsed as statement, but only if it has no errors. |
217 | pub fn parse(text: &str) -> Result<Self, ()> { | 217 | pub fn parse(text: &str) -> Result<Self, ()> { |
218 | parsing::parse_text_fragment(text, parser::FragmentKind::Statement) | 218 | parsing::parse_text_fragment(text, parser::FragmentKind::StatementOptionalSemi) |
219 | } | 219 | } |
220 | } | 220 | } |
221 | 221 | ||