File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl ParseSess {
152
152
/// * `relative` - If Some(symbol), the symbol name is a directory relative to the dir_path.
153
153
/// If relative is Some, resolve the submodle at {dir_path}/{symbol}/{id}.rs
154
154
/// or {dir_path}/{symbol}/{id}/mod.rs. if None, resolve the module at {dir_path}/{id}.rs.
155
- /// * `dir_path` - Module resolution will occur relative to this direcotry .
155
+ /// * `dir_path` - Module resolution will occur relative to this directory .
156
156
pub ( crate ) fn default_submod_path (
157
157
& self ,
158
158
id : symbol:: Ident ,
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ fn mod_resolution_error_relative_module_not_found() {
143
143
let args = [ "tests/mod-resolver/module-not-found/relative_module/lib.rs" ] ;
144
144
let ( _stdout, stderr) = rustfmt ( & args) ;
145
145
// The file `./a.rs` and directory `./a` both exist.
146
- // Module resolution fails becuase we're unable to find `./a/b.rs`
146
+ // Module resolution fails because we're unable to find `./a/b.rs`
147
147
#[ cfg( not( windows) ) ]
148
148
assert ! ( stderr. contains( "a/b.rs does not exist" ) ) ;
149
149
#[ cfg( windows) ]
You can’t perform that action at this time.
0 commit comments