Fix always-plural message in uv python install (#4866)

This commit is contained in:
Charlie Marsh 2024-07-07 15:29:19 -05:00 committed by GitHub
parent f4c4b69cc7
commit a302d704c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,9 +117,10 @@ pub(crate) async fn install(
.unique_by(|download| download.key()) .unique_by(|download| download.key())
.collect::<Vec<_>>(); .collect::<Vec<_>>();
let s = if downloads.len() == 1 { "" } else { "s" };
writeln!( writeln!(
printer.stderr(), printer.stderr(),
"Found {} versions requiring installation", "Found {} version{s} requiring installation",
downloads.len() downloads.len()
)?; )?;