From a1b78d6f97941956eb4d73d2836aeee93c14684e Mon Sep 17 00:00:00 2001 From: Cherio Date: Sat, 22 Jun 2024 16:30:40 -0400 Subject: [PATCH] Update version_format_specification.md Fixing erroneous description. By definition "Caret (^) starts a suffix that always sorts higher" however the loop logic below describes the opposite. --- specs/version_format_specification.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/version_format_specification.md b/specs/version_format_specification.md index a6cfc34..3889447 100644 --- a/specs/version_format_specification.md +++ b/specs/version_format_specification.md @@ -56,7 +56,7 @@ strings are found to compare as different. In a loop: the string with `-` compares lower. Otherwise, both minus characters are skipped. 5. If the remaining part of one of strings starts with `^`: if the other remaining part does not start with `^`, - the string with `^` compares lower. Otherwise, both caret characters are skipped. + the string with `^` compares higher. Otherwise, both caret characters are skipped. 6. If the remaining part of one of strings starts with `.`: if the other remaining part does not start with `.`, the string with `.` compares lower. Otherwise, both dot characters are skipped.