Update example in strip t comment

latest is now supported.
This commit is contained in:
Max Mynter 2025-06-07 01:19:33 +02:00
parent 5a45d4ee85
commit 2a5f10c296

View file

@ -2484,7 +2484,7 @@ impl FromStr for VersionRequest {
fn from_str(s: &str) -> Result<Self, Self::Err> {
// Stripping the 't' suffix produces awkward error messages if the user tries a version
// like "latest". HACK: If the version is all letters, don't even try to parse it further.
// like "oldest". HACK: If the version is all letters, don't even try to parse it further.
if s.chars().all(char::is_alphabetic) {
return Err(Error::InvalidVersionRequest(s.to_string()));
}