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 1ed6527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ users)
## Doc
* Update the command to install opam to point to the new simplified url on opam.ocaml.org [#6226 @kit-ty-kate]
* Fix debian manual url fragment [#6231 @RyanGibb]
* Change example of non-letter in version ordering [#6252 @gridbugs]

## Security fixes

Expand Down

0 comments on commit 1ed6527

Please sign in to comment.