Skip to content

Commit c03e184

Browse files
cuishuangcalebcartwright
authored andcommitted
fix some typos
Signed-off-by: cuishuang <imcusg@gmail.com>
1 parent b26c86b commit c03e184

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parse/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

tests/rustfmt/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)]

0 commit comments

Comments
 (0)