From 75073451c68be1a9d3427ad04a39555558453744 Mon Sep 17 00:00:00 2001 From: Frank Steffahn Date: Sun, 22 Aug 2021 17:48:15 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20three=20more=20(reverse)=20=E2=80=9Ca?= =?UTF-8?q?=E2=80=9D/=E2=80=9Can=E2=80=9D=20typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/ide/src/inlay_hints.rs | 4 ++-- crates/parser/src/parser.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs index e3d63cc949e..b2a8e2a2091 100644 --- a/crates/ide/src/inlay_hints.rs +++ b/crates/ide/src/inlay_hints.rs @@ -331,7 +331,7 @@ fn should_hide_param_name_hint( // - exact argument<->parameter match(ignoring leading underscore) or parameter is a prefix/suffix // of argument with _ splitting it off // - param starts with `ra_fixture` - // - param is a well known name in an unary function + // - param is a well known name in a unary function let param_name = param_name.trim_start_matches('_'); if param_name.is_empty() { @@ -369,7 +369,7 @@ fn is_argument_similar_to_param_name(argument: &ast::Expr, param_name: &str) -> argument == param_name } -/// Hide the parameter name of an unary function if it is a `_` - prefixed suffix of the function's name, or equal. +/// Hide the parameter name of a unary function if it is a `_` - prefixed suffix of the function's name, or equal. /// /// `fn strip_suffix(suffix)` will be hidden. /// `fn stripsuffix(suffix)` will not be hidden. diff --git a/crates/parser/src/parser.rs b/crates/parser/src/parser.rs index 5ed362ea638..a3aca3d591d 100644 --- a/crates/parser/src/parser.rs +++ b/crates/parser/src/parser.rs @@ -182,7 +182,7 @@ impl<'t> Parser<'t> { /// Advances the parser by one token, remapping its kind. /// This is useful to create contextual keywords from - /// identifiers. For example, the lexer creates an `union` + /// identifiers. For example, the lexer creates a `union` /// *identifier* token, but the parser remaps it to the /// `union` keyword, and keyword is what ends up in the /// final tree.