File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ extension StringProtocol {
64
64
/// print(cafe.hasPrefix("café"))
65
65
/// // Prints "false"
66
66
///
67
- /// The Unicode-safe comparison matches Unicode scalar values rather than the
68
- /// code points used to compose them. The example below uses two strings
69
- /// with different forms of the `"é"` character---the first uses the composed
70
- /// form and the second uses the decomposed form.
67
+ /// The Unicode-safe comparison matches Unicode extended grapheme clusters
68
+ /// rather than the code points used to compose them. The example below uses
69
+ /// two strings with different forms of the `"é"` character---the first uses
70
+ /// the composed form and the second uses the decomposed form.
71
71
///
72
72
/// // Unicode safe
73
73
/// let composedCafe = "Café"
@@ -98,10 +98,10 @@ extension StringProtocol {
98
98
/// print(plans.hasSuffix("Café"))
99
99
/// // Prints "false"
100
100
///
101
- /// The Unicode-safe comparison matches Unicode scalar values rather than the
102
- /// code points used to compose them. The example below uses two strings
103
- /// with different forms of the `"é"` character---the first uses the composed
104
- /// form and the second uses the decomposed form.
101
+ /// The Unicode-safe comparison matches Unicode extended grapheme clusters
102
+ /// rather than the code points used to compose them. The example below uses
103
+ /// two strings with different forms of the `"é"` character---the first uses
104
+ /// the composed form and the second uses the decomposed form.
105
105
///
106
106
/// // Unicode safe
107
107
/// let composedCafe = "café"
You can’t perform that action at this time.
0 commit comments