fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com>
This commit is contained in:
parent
b26c86b51a
commit
c03e1842f6
@ -152,7 +152,7 @@ impl ParseSess {
|
||||
/// * `relative` - If Some(symbol), the symbol name is a directory relative to the dir_path.
|
||||
/// If relative is Some, resolve the submodle at {dir_path}/{symbol}/{id}.rs
|
||||
/// or {dir_path}/{symbol}/{id}/mod.rs. if None, resolve the module at {dir_path}/{id}.rs.
|
||||
/// * `dir_path` - Module resolution will occur relative to this direcotry.
|
||||
/// * `dir_path` - Module resolution will occur relative to this directory.
|
||||
pub(crate) fn default_submod_path(
|
||||
&self,
|
||||
id: symbol::Ident,
|
||||
|
@ -143,7 +143,7 @@ fn mod_resolution_error_relative_module_not_found() {
|
||||
let args = ["tests/mod-resolver/module-not-found/relative_module/lib.rs"];
|
||||
let (_stdout, stderr) = rustfmt(&args);
|
||||
// The file `./a.rs` and directory `./a` both exist.
|
||||
// Module resolution fails becuase we're unable to find `./a/b.rs`
|
||||
// Module resolution fails because we're unable to find `./a/b.rs`
|
||||
#[cfg(not(windows))]
|
||||
assert!(stderr.contains("a/b.rs does not exist"));
|
||||
#[cfg(windows)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user