mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Update example in strip t comment
latest is now supported.
This commit is contained in:
parent
5a45d4ee85
commit
2a5f10c296
1 changed files with 1 additions and 1 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue