about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/stmt.rs
diff options
context:
space:
mode:
authorXiretza <xiretza@xiretza.xyz>2022-08-17 11:18:48 +0200
committerXiretza <xiretza@xiretza.xyz>2022-08-17 11:18:48 +0200
commitd3bf103d1b3e8391a8d0a4ebecbfa1004e1297cb (patch)
tree2bb8eb16f7933f64fc43286d8b12ceb4fbe5ab2c /compiler/rustc_parse/src/parser/stmt.rs
parent86c6ebee8fa0a5ad1e18e375113b06bd2849b634 (diff)
downloadrust-d3bf103d1b3e8391a8d0a4ebecbfa1004e1297cb.tar.gz
rust-d3bf103d1b3e8391a8d0a4ebecbfa1004e1297cb.zip
Fix documentation of rustc_parse::parser::Parser::parse_stmt_without_recovery
Something seems to have gotten out of sync during the creation of #81177,
where both the argument and comment were introduced.
Diffstat (limited to 'compiler/rustc_parse/src/parser/stmt.rs')
-rw-r--r--compiler/rustc_parse/src/parser/stmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs
index ade0f4fbc86..cac39f8f25f 100644
--- a/compiler/rustc_parse/src/parser/stmt.rs
+++ b/compiler/rustc_parse/src/parser/stmt.rs
@@ -34,7 +34,7 @@ impl<'a> Parser<'a> {
         }))
     }
 
-    /// If `force_capture` is true, forces collection of tokens regardless of whether
+    /// If `force_collect` is [`ForceCollect::Yes`], forces collection of tokens regardless of whether
     /// or not we have attributes
     pub(crate) fn parse_stmt_without_recovery(
         &mut self,