Skip to content

Commit 3e43e2f

Browse files
committed
refactor(cli/rustup-mode): rename doc_url to doc_path
1 parent 493a411 commit 3e43e2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/rustup_mode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ async fn doc(
15071507
}
15081508
};
15091509

1510-
let doc_url = if let Some(topic) = topic {
1510+
let doc_path = if let Some(topic) = topic {
15111511
Cow::Owned(topical_doc::local_path(
15121512
&toolchain.doc_path("").unwrap(),
15131513
topic,
@@ -1518,7 +1518,7 @@ async fn doc(
15181518
};
15191519

15201520
if path_only {
1521-
let doc_path = toolchain.doc_path(&doc_url)?;
1521+
let doc_path = toolchain.doc_path(&doc_path)?;
15221522
writeln!(cfg.process.stdout().lock(), "{}", doc_path.display())?;
15231523
return Ok(utils::ExitCode(0));
15241524
}
@@ -1531,7 +1531,7 @@ async fn doc(
15311531
} else {
15321532
writeln!(cfg.process.stderr().lock(), "Opening docs in your browser")?;
15331533
}
1534-
toolchain.open_docs(&doc_url)?;
1534+
toolchain.open_docs(&doc_path)?;
15351535
Ok(utils::ExitCode(0))
15361536
}
15371537

0 commit comments

Comments
 (0)