fix some wrong comments

This commit is contained in:
Sébastien Besnier 2020-11-18 17:56:34 +01:00
parent b1548ff4e8
commit bfe219f307

View file

@ -95,7 +95,7 @@ where
)
}
/// Parses the given expression with 0 or more (spaces/comments/newlines) after it.
/// Parses the given expression with 0 or more (spaces/comments/newlines) before it.
/// Returns a Located<Expr> where the location is around the Expr, ignoring the spaces.
/// The Expr will be wrapped in a SpaceBefore if there were any newlines or comments found.
pub fn space0_before<'a, P, S>(parser: P, min_indent: u16) -> impl Parser<'a, Located<S>>
@ -119,7 +119,7 @@ where
)
}
/// Parses the given expression with 1 or more (spaces/comments/newlines) after it.
/// Parses the given expression with 1 or more (spaces/comments/newlines) before it.
/// Returns a Located<Expr> where the location is around the Expr, ignoring the spaces.
/// The Expr will be wrapped in a SpaceBefore if there were any newlines or comments found.
pub fn space1_before<'a, P, S>(parser: P, min_indent: u16) -> impl Parser<'a, Located<S>>