about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorEtomicBomb <ethan@ethan.ws>2024-07-25 00:05:32 +0000
committerEtomicBomb <ethan@ethan.ws>2024-08-07 18:37:44 +0000
commitf1a996c39b4accf958cb02028e9b8e5d4e3d796d (patch)
treeecfde0efa67c5df79613dc46c0d28bc7e7c33297 /src/librustdoc
parent9ebe5ae3064af4f7f0f79c774e778ee26f36bdcb (diff)
add blank line, remove extraneous comment
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/config.rs1
-rw-r--r--src/librustdoc/html/render/context.rs1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs
index 2e54a22840b..e4549796b3e 100644
--- a/src/librustdoc/config.rs
+++ b/src/librustdoc/config.rs
@@ -730,6 +730,7 @@ impl Options {
         let extern_html_root_takes_precedence =
             matches.opt_present("extern-html-root-takes-precedence");
         let html_no_source = matches.opt_present("html-no-source");
+
         if generate_link_to_definition && (show_coverage || output_format != OutputFormat::Html) {
             dcx.fatal(
                 "--generate-link-to-definition option can only be used with HTML output format",
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs
index 8e72dd6a864..0ed8921b1e8 100644
--- a/src/librustdoc/html/render/context.rs
+++ b/src/librustdoc/html/render/context.rs
@@ -722,7 +722,6 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
         );
         shared.fs.write(help_file, v)?;
 
-        // if to avoid writing files to doc root unless we're on the final invocation
         if shared.layout.scrape_examples_extension {
             page.title = "About scraped examples";
             page.description = "How the scraped examples feature works in Rustdoc";