Skip to content

Commit

Permalink
Merge pull request #18913 from Wilfred/grammar_fix
Browse files Browse the repository at this point in the history
minor: Fix grammar in doc comments
  • Loading branch information
lnicola authored Jan 11, 2025
2 parents 4f35021 + 7f6b874 commit 9923b00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/base-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub trait SourceRootDatabase: SourceDatabase {
#[ra_salsa::input]
fn source_root(&self, id: SourceRootId) -> Arc<SourceRoot>;

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

Expand Down
6 changes: 3 additions & 3 deletions crates/ide/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,17 +582,17 @@ impl Analysis {
self.with_db(|db| parent_module::parent_module(db, position))
}

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

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

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

0 comments on commit 9923b00

Please sign in to comment.