File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1507,7 +1507,7 @@ async fn doc(
1507
1507
}
1508
1508
} ;
1509
1509
1510
- let doc_url = if let Some ( topic) = topic {
1510
+ let doc_path = if let Some ( topic) = topic {
1511
1511
Cow :: Owned ( topical_doc:: local_path (
1512
1512
& toolchain. doc_path ( "" ) . unwrap ( ) ,
1513
1513
topic,
@@ -1518,7 +1518,7 @@ async fn doc(
1518
1518
} ;
1519
1519
1520
1520
if path_only {
1521
- let doc_path = toolchain. doc_path ( & doc_url ) ?;
1521
+ let doc_path = toolchain. doc_path ( & doc_path ) ?;
1522
1522
writeln ! ( cfg. process. stdout( ) . lock( ) , "{}" , doc_path. display( ) ) ?;
1523
1523
return Ok ( utils:: ExitCode ( 0 ) ) ;
1524
1524
}
@@ -1531,7 +1531,7 @@ async fn doc(
1531
1531
} else {
1532
1532
writeln ! ( cfg. process. stderr( ) . lock( ) , "Opening docs in your browser" ) ?;
1533
1533
}
1534
- toolchain. open_docs ( & doc_url ) ?;
1534
+ toolchain. open_docs ( & doc_path ) ?;
1535
1535
Ok ( utils:: ExitCode ( 0 ) )
1536
1536
}
1537
1537
You can’t perform that action at this time.
0 commit comments