about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2023-08-27 17:02:33 -0700
committerJosh Triplett <josh@joshtriplett.org>2023-08-27 17:02:33 -0700
commitf06df2207ed4a7adc34cab93fe82d7d0e22c2cc8 (patch)
tree71b02adea6a4fb1a799e283d8fb429ecce784556
parent95eb1e206ca562a27762bd8c4cbd88bb26c1e115 (diff)
downloadrust-f06df2207ed4a7adc34cab93fe82d7d0e22c2cc8.tar.gz
rust-f06df2207ed4a7adc34cab93fe82d7d0e22c2cc8.zip
Clarify "as normal" -> "lexicographically"
-rw-r--r--src/doc/style-guide/src/README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/doc/style-guide/src/README.md b/src/doc/style-guide/src/README.md
index 62f463ee2f0..d00e6a5d882 100644
--- a/src/doc/style-guide/src/README.md
+++ b/src/doc/style-guide/src/README.md
@@ -109,12 +109,13 @@ lexicographical.)
 
 For the purposes of the Rust style, to compare two strings for version-sorting:
 
-- Compare the strings by (Unicode) character as normal, finding the index of
-  the first differing character. (If the two strings do not have the same
-  length, this may be the end of the shorter string.)
+- Compare the strings by (Unicode) character lexicographically, finding the
+  index of the first differing character. (If the two strings do not have the
+  same length, this may be the end of the shorter string.)
 - For both strings, determine the longest sequence of ASCII digits that either
   contains or ends at that index. (If either string doesn't have such a
-  sequence of ASCII digits, fall back to comparing the strings as normal.)
+  sequence of ASCII digits, fall back to comparing the strings
+  lexicographically.)
 - Compare the numeric values of the number specified by the sequence of digits.
   (Note that an implementation of this algorithm can easily check this without
   accumulating copies of the digits or converting to a number: after skipping