Format comments.

This commit is contained in:
Stephen Chung
2020-03-25 11:27:09 +08:00
parent 599b81ad8a
commit 3bc02a99ad
2 changed files with 28 additions and 27 deletions

View File

@@ -96,9 +96,12 @@ pub enum ParseErrorType {
}
impl ParseErrorType {
/// Make a `ParseError` using the current type and position.
pub(crate) fn into_err(self, pos: Position) -> ParseError {
ParseError(self, pos)
}
/// Make a `ParseError` using the current type and EOF position.
pub(crate) fn into_err_eof(self) -> ParseError {
ParseError(self, Position::eof())
}