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 {
152152 /// * `relative` - If Some(symbol), the symbol name is a directory relative to the dir_path.
153153 /// If relative is Some, resolve the submodle at {dir_path}/{symbol}/{id}.rs
154154 /// 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 .
156156 pub ( crate ) fn default_submod_path (
157157 & self ,
158158 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() {
143143 let args = [ "tests/mod-resolver/module-not-found/relative_module/lib.rs" ] ;
144144 let ( _stdout, stderr) = rustfmt ( & args) ;
145145 // 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`
147147 #[ cfg( not( windows) ) ]
148148 assert ! ( stderr. contains( "a/b.rs does not exist" ) ) ;
149149 #[ cfg( windows) ]
You can’t perform that action at this time.
0 commit comments