From 7f6b8745c8d3c2312180088c56ce69d617a83b95 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 10 Jan 2025 15:58:30 -0800 Subject: [PATCH] minor: Fix grammar in doc comments "too" should be "to" here. --- crates/base-db/src/lib.rs | 2 +- crates/ide/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/base-db/src/lib.rs b/crates/base-db/src/lib.rs index 0a9e83bc3bad..c7e4168f6bc8 100644 --- a/crates/base-db/src/lib.rs +++ b/crates/base-db/src/lib.rs @@ -136,7 +136,7 @@ pub trait SourceRootDatabase: SourceDatabase { #[ra_salsa::input] fn source_root(&self, id: SourceRootId) -> Arc; - /// Crates whose root fool is in `id`. + /// Crates whose root file is in `id`. fn source_root_crates(&self, id: SourceRootId) -> Arc<[CrateId]>; } diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index af9a7ce7881a..183962be2817 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs @@ -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> { 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> { 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> { self.with_db(|db| db.relevant_crates(file_id).iter().copied().collect()) }