Skip to content

Commit

Permalink
Merge pull request #6252 from gridbugs/clarify-version-ordering-compa…
Browse files Browse the repository at this point in the history
…rison-example

Change example of non-letter in version ordering
  • Loading branch information
kit-ty-kate authored Oct 21, 2024
2 parents db2d5d8 + a3c6ec9 commit 1e9b9be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/pages/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ packages.
| "(" <version-formula> ")"
| <relop> <version>
<relop> ::= "=" | "!=" | "<" | "<=" | ">" | ">="
<version> ::= (") { <identchar> | "+" | "." | "~" }+ (")
<version> ::= (") { <identchar> | "." | "~" }+ (")
```

Package names have the same restrictions as idents — only letter, digits, dash
Expand Down 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
2 changes: 2 additions & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ 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]
* Remove redundant `+` in version BNF definition (it is already present in `identchar`) [#6252 @rjbou]

## Security fixes

Expand Down

0 comments on commit 1e9b9be

Please sign in to comment.