lexer: make 'take_error' internal

This commit is contained in:
PgBiel 2024-06-26 12:55:38 -03:00
parent eec6a3a0d1
commit 05a40ed43d

View File

@ -75,7 +75,7 @@ impl<'s> Lexer<'s> {
} }
/// Take out the last error, if any. /// Take out the last error, if any.
pub fn take_error(&mut self) -> Option<SyntaxError> { fn take_error(&mut self) -> Option<SyntaxError> {
self.error.take() self.error.take()
} }
} }