Skip to content

Commit c6baf3d

Browse files
bors[bot]steffahn
andauthored
Merge #9984
9984: Fix typos “a”→“an” r=Veykril a=steffahn See rust-lang/rust#88230 Co-authored-by: Frank Steffahn <[email protected]>
2 parents b9d8798 + 3a5a935 commit c6baf3d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

crates/hir/src/semantics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
203203
self.imp.ancestors_at_offset_with_macros(node, offset)
204204
}
205205

206-
/// Find a AstNode by offset inside SyntaxNode, if it is inside *Macrofile*,
206+
/// Find an AstNode by offset inside SyntaxNode, if it is inside *Macrofile*,
207207
/// search up until it is of the target AstNode type
208208
pub fn find_node_at_offset_with_macros<N: AstNode>(
209209
&self,
@@ -213,7 +213,7 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
213213
self.imp.ancestors_at_offset_with_macros(node, offset).find_map(N::cast)
214214
}
215215

216-
/// Find a AstNode by offset inside SyntaxNode, if it is inside *MacroCall*,
216+
/// Find an AstNode by offset inside SyntaxNode, if it is inside *MacroCall*,
217217
/// descend it and find again
218218
pub fn find_node_at_offset_with_descend<N: AstNode>(
219219
&self,

crates/hir_ty/src/diagnostics/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl ExprValidator {
280280
for arm in arms {
281281
if let Some(pat_ty) = infer.type_of_pat.get(arm.pat) {
282282
// We only include patterns whose type matches the type
283-
// of the match expression. If we had a InvalidMatchArmPattern
283+
// of the match expression. If we had an InvalidMatchArmPattern
284284
// diagnostic or similar we could raise that in an else
285285
// block here.
286286
//

crates/ide_completion/src/completions/trait_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Completion for associated items in a trait implementation.
22
//!
33
//! This module adds the completion items related to implementing associated
4-
//! items within a `impl Trait for Struct` block. The current context node
4+
//! items within an `impl Trait for Struct` block. The current context node
55
//! must be within either a `FN`, `TYPE_ALIAS`, or `CONST` node
66
//! and an direct child of an `IMPL`.
77
//!

crates/paths/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl AbsPathBuf {
9898
.unwrap_or_else(|path| panic!("expected absolute path, got {}", path.display()))
9999
}
100100

101-
/// Coerces to a `AbsPath` slice.
101+
/// Coerces to an `AbsPath` slice.
102102
///
103103
/// Equivalent of [`PathBuf::as_path`] for `AbsPathBuf`.
104104
pub fn as_path(&self) -> &AbsPath {

0 commit comments

Comments
 (0)