This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/tools/rust-analyzer/crates Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments