Skip to content

Commit 996300f

Browse files
bors[bot]steffahn
andauthored
Merge #9989
9989: Fix two more “a”/“an” typos (this time the other way) r=lnicola a=steffahn Follow-up to #9987 you guys are still merging these fast 😅 _this time I thought – for sure – that I’d get this commit into #9987 before it’s merged…_ Co-authored-by: Frank Steffahn <[email protected]>
2 parents 1c27243 + 7507345 commit 996300f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

crates/hir_def/src/path/lower.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub(super) fn lower_path(mut path: ast::Path, ctx: &LowerCtx) -> Option<Path> {
101101
break;
102102
}
103103
ast::PathSegmentKind::SelfKw => {
104-
// don't break out if `self` is the last segment of a path, this mean we got an
104+
// don't break out if `self` is the last segment of a path, this mean we got a
105105
// use tree like `foo::{self}` which we want to resolve as `foo`
106106
if !segments.is_empty() {
107107
kind = PathKind::Super(0);

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/mbe/src/expander.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub(crate) fn expand_rules(
9393
///
9494
/// In other words, `Bindings` is a *multi* mapping from `SmolStr` to
9595
/// `tt::TokenTree`, where the index to select a particular `TokenTree` among
96-
/// many is not a plain `usize`, but an `&[usize]`.
96+
/// many is not a plain `usize`, but a `&[usize]`.
9797
#[derive(Debug, Default, Clone, PartialEq, Eq)]
9898
struct Bindings {
9999
inner: FxHashMap<SmolStr, Binding>,

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)