diff --git a/tests/compile-test.rs b/tests/compile-test.rs
index a1f3224a5da9..6bdfb17481a3 100644
--- a/tests/compile-test.rs
+++ b/tests/compile-test.rs
@@ -466,7 +466,7 @@ enum DiagnosticOrMessage {
}
/// Collects applicabilities from the diagnostics produced for each UI test, producing the
-/// `util/gh-pages/lints.json` file used by
+/// `util/gh-pages/index.html` file used by
#[derive(Debug, Clone)]
struct DiagnosticCollector {
sender: Sender>,