@@ -251,7 +251,7 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
251
251
let file = match File :: from_path ( & conn, & path) {
252
252
Some ( f) => f,
253
253
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
255
255
path. push_str ( "/index.html" ) ;
256
256
req_path. push ( "index.html" ) ;
257
257
match File :: from_path ( & conn, & path) {
@@ -447,8 +447,8 @@ mod test {
447
447
. name ( "buggy" ) . version ( "0.1.0" )
448
448
. build_result_successful ( true )
449
449
. 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" )
452
452
. rustdoc_file ( "all.html" , b"some data 2" )
453
453
. rustdoc_file ( "directory_3/.gitignore" , b"*.ext" )
454
454
. rustdoc_file ( "directory_4/empty_file_no_ext" , b"" )
@@ -460,8 +460,8 @@ mod test {
460
460
let web = env. frontend ( ) ;
461
461
assert_success ( "/" , web) ?;
462
462
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) ?;
465
465
assert_success ( "/buggy/0.1.0/directory_3/.gitignore" , web) ?;
466
466
assert_success ( "/buggy/0.1.0/settings.html" , web) ?;
467
467
assert_success ( "/buggy/0.1.0/all.html" , web) ?;
0 commit comments