Skip to content

Commit da7a908

Browse files
committed
Fix spelling of perf. run estimation PR comment
1 parent 63870d3 commit da7a908

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

site/src/github.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,15 @@ pub async fn enqueue_shas(
287287

288288
// At this point, the queue should also contain the commit that we're mentioning below.
289289
let other_artifact_count = artifacts_in_queue.saturating_sub(1);
290+
291+
let verb = if other_artifact_count == 1 {
292+
"is"
293+
} else {
294+
"are"
295+
};
290296
let suffix = if other_artifact_count == 1 { "" } else { "s" };
291297
let queue_msg = format!(
292-
r#"There are currently {other_artifact_count} other artifact{suffix} in the [queue](https://perf.rust-lang.org/status.html).
298+
r#"There {verb} currently {other_artifact_count} other artifact{suffix} in the [queue](https://perf.rust-lang.org/status.html).
293299
It will probably take at least ~{:.2} hours until the benchmark run finishes."#,
294300
(expected_duration / 3600.0)
295301
);

0 commit comments

Comments
 (0)