Fix doc comments on parser
This commit is contained in:
parent
9f7331f427
commit
ce6458af41
1 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ impl Parser {
|
||||||
self.next();
|
self.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parses and renders multiple blocks of markup.
|
/// Parses multiple blocks of markup.
|
||||||
fn markups(&mut self) -> Vec<ast::Markup> {
|
fn markups(&mut self) -> Vec<ast::Markup> {
|
||||||
let mut result = Vec::new();
|
let mut result = Vec::new();
|
||||||
loop {
|
loop {
|
||||||
|
@ -83,7 +83,7 @@ impl Parser {
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parses and renders a single block of markup.
|
/// Parses a single block of markup.
|
||||||
fn markup(&mut self) -> ast::Markup {
|
fn markup(&mut self) -> ast::Markup {
|
||||||
let token = match self.peek() {
|
let token = match self.peek() {
|
||||||
Some(token) => token,
|
Some(token) => token,
|
||||||
|
@ -180,7 +180,7 @@ impl Parser {
|
||||||
markup
|
markup
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parses and renders a literal string.
|
/// Parses a literal string.
|
||||||
fn literal(&mut self, lit: &Literal) -> ast::Markup {
|
fn literal(&mut self, lit: &Literal) -> ast::Markup {
|
||||||
let content = parse_str::<LitStr>(&lit.to_string())
|
let content = parse_str::<LitStr>(&lit.to_string())
|
||||||
.map(|l| l.value())
|
.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.
|
/// The leading `@while` should already be consumed.
|
||||||
fn while_expr(&mut self, at_span: Span, keyword: TokenTree) -> ast::Markup {
|
fn while_expr(&mut self, at_span: Span, keyword: TokenTree) -> ast::Markup {
|
||||||
|
|
Loading…
Add table
Reference in a new issue