Skip to content

Commit 7507345

Browse files
committed
Fix three more (reverse) “a”/“an” typos
1 parent 5f5d454 commit 7507345

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/ide/src/inlay_hints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ fn should_hide_param_name_hint(
331331
// - exact argument<->parameter match(ignoring leading underscore) or parameter is a prefix/suffix
332332
// of argument with _ splitting it off
333333
// - param starts with `ra_fixture`
334-
// - param is a well known name in an unary function
334+
// - param is a well known name in a unary function
335335

336336
let param_name = param_name.trim_start_matches('_');
337337
if param_name.is_empty() {
@@ -369,7 +369,7 @@ fn is_argument_similar_to_param_name(argument: &ast::Expr, param_name: &str) ->
369369
argument == param_name
370370
}
371371

372-
/// Hide the parameter name of an unary function if it is a `_` - prefixed suffix of the function's name, or equal.
372+
/// Hide the parameter name of a unary function if it is a `_` - prefixed suffix of the function's name, or equal.
373373
///
374374
/// `fn strip_suffix(suffix)` will be hidden.
375375
/// `fn stripsuffix(suffix)` will not be hidden.

crates/parser/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl<'t> Parser<'t> {
182182

183183
/// Advances the parser by one token, remapping its kind.
184184
/// This is useful to create contextual keywords from
185-
/// identifiers. For example, the lexer creates an `union`
185+
/// identifiers. For example, the lexer creates a `union`
186186
/// *identifier* token, but the parser remaps it to the
187187
/// `union` keyword, and keyword is what ends up in the
188188
/// final tree.

0 commit comments

Comments
 (0)