File tree 2 files changed +4
-4
lines changed
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 {
136
136
#[ ra_salsa:: input]
137
137
fn source_root ( & self , id : SourceRootId ) -> Arc < SourceRoot > ;
138
138
139
- /// Crates whose root fool is in `id`.
139
+ /// Crates whose root file is in `id`.
140
140
fn source_root_crates ( & self , id : SourceRootId ) -> Arc < [ CrateId ] > ;
141
141
}
142
142
Original file line number Diff line number Diff line change @@ -582,17 +582,17 @@ impl Analysis {
582
582
self . with_db ( |db| parent_module:: parent_module ( db, position) )
583
583
}
584
584
585
- /// Returns crates this file belongs too .
585
+ /// Returns crates that this file belongs to .
586
586
pub fn crates_for ( & self , file_id : FileId ) -> Cancellable < Vec < CrateId > > {
587
587
self . with_db ( |db| parent_module:: crates_for ( db, file_id) )
588
588
}
589
589
590
- /// Returns crates this file belongs too .
590
+ /// Returns crates that this file belongs to .
591
591
pub fn transitive_rev_deps ( & self , crate_id : CrateId ) -> Cancellable < Vec < CrateId > > {
592
592
self . with_db ( |db| db. crate_graph ( ) . transitive_rev_deps ( crate_id) . collect ( ) )
593
593
}
594
594
595
- /// Returns crates this file *might* belong too .
595
+ /// Returns crates that this file *might* belong to .
596
596
pub fn relevant_crates_for ( & self , file_id : FileId ) -> Cancellable < Vec < CrateId > > {
597
597
self . with_db ( |db| db. relevant_crates ( file_id) . iter ( ) . copied ( ) . collect ( ) )
598
598
}
You can’t perform that action at this time.
0 commit comments