0
0
mirror of https://github.com/semver/semver.git synced 2025-08-24 14:58:35 +00:00

Merge pull request #975 from vaitkus/fix-style-issues

This commit is contained in:
Yuki Okushi 2025-06-23 19:31:18 +09:00 committed by GitHub
commit d58db16863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,11 +112,11 @@ have the same precedence. Examples: 1.0.0-alpha+001, 1.0.0+20130313144700,
1. Precedence refers to how versions are compared to each other when ordered. 1. Precedence refers to how versions are compared to each other when ordered.
1. Precedence MUST be calculated by separating the version into major, 1. Precedence MUST be calculated by separating the version into major,
minor, patch and pre-release identifiers in that order (Build metadata minor, patch and pre-release identifiers in that order (build metadata
does not figure into precedence). does not figure into precedence).
1. Precedence is determined by the first difference when comparing each of 1. Precedence is determined by the first difference when comparing each of
these identifiers from left to right as follows: Major, minor, and patch these identifiers from left to right as follows: major, minor, and patch
versions are always compared numerically. versions are always compared numerically.
Example: 1.0.0 < 2.0.0 < 2.1.0 < 2.1.1. Example: 1.0.0 < 2.0.0 < 2.1.0 < 2.1.1.
@ -322,7 +322,7 @@ that users can smoothly transition to the new API.
### Does SemVer have a size limit on the version string? ### Does SemVer have a size limit on the version string?
No, but use good judgment. A 255 character version string is probably overkill, No, but use good judgment. A 255 character version string is probably an overkill,
for example. Also, specific systems may impose their own limits on the size of for example. Also, specific systems may impose their own limits on the size of
the string. the string.