Fix semantic versioning sort order
Pre-releases always have a lower precedence than the associated production version. Fix the example sort to reflect that and clarify this precedence behavior in the description. This fixes #2169. Based on original PR #2182.
This commit is contained in:
Родитель
152dbe8a4b
Коммит
51024438e1
|
@ -17,7 +17,7 @@ It’s also possible to append a dash followed by a string after the version num
|
|||
Versions that are not pre-releases are called productions.
|
||||
|
||||
For instance, a valid Semantic Versioning number sort would be:
|
||||
1.0.0 -> 1.0.1 -> 1.0.1-alpha -> 1.1.0 -> 1.1.1 -> 2.0.0.
|
||||
1.0.0 -> 1.0.1-alpha -> 1.0.1 -> 1.1.0-alpha -> 1.1.0-rc1 -> 1.1.0 -> 1.1.1 -> 2.0.0.
|
||||
|
||||
## Executable
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче