Skip to content

Commit 9923b00

Browse files
authored
Merge pull request #18913 from Wilfred/grammar_fix
minor: Fix grammar in doc comments
2 parents 4f35021 + 7f6b874 commit 9923b00

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/base-db/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub trait SourceRootDatabase: SourceDatabase {
136136
#[ra_salsa::input]
137137
fn source_root(&self, id: SourceRootId) -> Arc<SourceRoot>;
138138

139-
/// Crates whose root fool is in `id`.
139+
/// Crates whose root file is in `id`.
140140
fn source_root_crates(&self, id: SourceRootId) -> Arc<[CrateId]>;
141141
}
142142

crates/ide/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,17 +582,17 @@ impl Analysis {
582582
self.with_db(|db| parent_module::parent_module(db, position))
583583
}
584584

585-
/// Returns crates this file belongs too.
585+
/// Returns crates that this file belongs to.
586586
pub fn crates_for(&self, file_id: FileId) -> Cancellable<Vec<CrateId>> {
587587
self.with_db(|db| parent_module::crates_for(db, file_id))
588588
}
589589

590-
/// Returns crates this file belongs too.
590+
/// Returns crates that this file belongs to.
591591
pub fn transitive_rev_deps(&self, crate_id: CrateId) -> Cancellable<Vec<CrateId>> {
592592
self.with_db(|db| db.crate_graph().transitive_rev_deps(crate_id).collect())
593593
}
594594

595-
/// Returns crates this file *might* belong too.
595+
/// Returns crates that this file *might* belong to.
596596
pub fn relevant_crates_for(&self, file_id: FileId) -> Cancellable<Vec<CrateId>> {
597597
self.with_db(|db| db.relevant_crates(file_id).iter().copied().collect())
598598
}

0 commit comments

Comments
 (0)