Skip to content

Commit 4abae1a

Browse files
ZexbeJoshua Nelson
and
Joshua Nelson
committed
Fix typos in test directory name.
Co-Authored-By: Joshua Nelson <[email protected]>
1 parent bc5ca5f commit 4abae1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/web/rustdoc.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
251251
let file = match File::from_path(&conn, &path) {
252252
Some(f) => f,
253253
None => {
254-
//If it fails, we try again with /index.html at the end
254+
// If it fails, we try again with /index.html at the end
255255
path.push_str("/index.html");
256256
req_path.push("index.html");
257257
match File::from_path(&conn, &path) {
@@ -447,8 +447,8 @@ mod test {
447447
.name("buggy").version("0.1.0")
448448
.build_result_successful(true)
449449
.rustdoc_file("settings.html", b"some data")
450-
.rustdoc_file("directoty_1/index.html", b"some data 1")
451-
.rustdoc_file("directoty_2.html/index.html", b"some data 1")
450+
.rustdoc_file("directory_1/index.html", b"some data 1")
451+
.rustdoc_file("directory_2.html/index.html", b"some data 1")
452452
.rustdoc_file("all.html", b"some data 2")
453453
.rustdoc_file("directory_3/.gitignore", b"*.ext")
454454
.rustdoc_file("directory_4/empty_file_no_ext", b"")
@@ -460,8 +460,8 @@ mod test {
460460
let web = env.frontend();
461461
assert_success("/", web)?;
462462
assert_success("/crate/buggy/0.1.0/", web)?;
463-
assert_success("/buggy/0.1.0/directoty_1/index.html", web)?;
464-
assert_success("/buggy/0.1.0/directoty_2.html/index.html", web)?;
463+
assert_success("/buggy/0.1.0/directory_1/index.html", web)?;
464+
assert_success("/buggy/0.1.0/directory_2.html/index.html", web)?;
465465
assert_success("/buggy/0.1.0/directory_3/.gitignore", web)?;
466466
assert_success("/buggy/0.1.0/settings.html", web)?;
467467
assert_success("/buggy/0.1.0/all.html", web)?;

0 commit comments

Comments
 (0)