From ce6458af41b02104a45c99c8eda219d30f2a5c41 Mon Sep 17 00:00:00 2001 From: Chris Wong <lambda.fairy@gmail.com> Date: Sat, 13 Mar 2021 20:49:05 +1100 Subject: [PATCH] Fix doc comments on parser --- maud_macros/src/parse.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maud_macros/src/parse.rs b/maud_macros/src/parse.rs index 720c6a7..a63ec72 100644 --- a/maud_macros/src/parse.rs +++ b/maud_macros/src/parse.rs @@ -63,7 +63,7 @@ impl Parser { self.next(); } - /// Parses and renders multiple blocks of markup. + /// Parses multiple blocks of markup. fn markups(&mut self) -> Vec<ast::Markup> { let mut result = Vec::new(); loop { @@ -83,7 +83,7 @@ impl Parser { result } - /// Parses and renders a single block of markup. + /// Parses a single block of markup. fn markup(&mut self) -> ast::Markup { let token = match self.peek() { Some(token) => token, @@ -180,7 +180,7 @@ impl Parser { markup } - /// Parses and renders a literal string. + /// Parses a literal string. fn literal(&mut self, lit: &Literal) -> ast::Markup { let content = parse_str::<LitStr>(&lit.to_string()) .map(|l| l.value()) @@ -263,7 +263,7 @@ impl Parser { } } - /// Parses and renders an `@while` expression. + /// Parses an `@while` expression. /// /// The leading `@while` should already be consumed. fn while_expr(&mut self, at_span: Span, keyword: TokenTree) -> ast::Markup {