Skip to content

Commit

Permalink
Change example of non-letter in version ordering
Browse files Browse the repository at this point in the history
The "Package Formulas" grammar in the manual says that valid characters
for version numbers are `<identchar> | "+" | "." | "~"`. Notably this
does not include the "#" character. This change updates the example of a
comparing a letter to a non-letter character to use a non-letter
character that may appear in a version number.

Signed-off-by: Stephen Sherratt <[email protected]>
  • Loading branch information
gridbugs committed Oct 18, 2024
1 parent d5d6ddd commit 1eaf91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/pages/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Here is a full example:
> 1, which is the empty string `""`, is smaller than `"a"`.
>
> - For non-digit components, the ordering used is that letters are
> always smaller than non-letters (for example `z` < `"#"`), while
> always smaller than non-letters (for example `z` < `"+"`), while
> non-letters are compared by ASCII order.
>
> - The `~` character is special as it sorts even before the end of sequence
Expand Down

0 comments on commit 1eaf91e

Please sign in to comment.