From ea7b569e1b133b6c19ef60c9cb2b2fd6b79847da Mon Sep 17 00:00:00 2001 From: csmoe Date: Mon, 31 Dec 2018 20:53:43 +0800 Subject: docing parser methods --- crates/ra_syntax/src/parser_api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_syntax/src/parser_api.rs') diff --git a/crates/ra_syntax/src/parser_api.rs b/crates/ra_syntax/src/parser_api.rs index 02421def1..0f740963d 100644 --- a/crates/ra_syntax/src/parser_api.rs +++ b/crates/ra_syntax/src/parser_api.rs @@ -61,7 +61,7 @@ impl<'t> Parser<'t> { Marker::new(self.0.start()) } - /// Advances the parser by one token. + /// Advances the parser by one token unconditionally. pub(crate) fn bump(&mut self) { self.0.bump(); } @@ -91,7 +91,7 @@ impl<'t> Parser<'t> { self.0.error(message.into()) } - /// Consume the next token if it is `kind`. + /// Consume the next token if `kind` matches. pub(crate) fn eat(&mut self, kind: SyntaxKind) -> bool { if !self.at(kind) { return false; -- cgit v1.2.3