Skip to content

Commit dcfc26c

Browse files
committed
[stdlib][NFC] Doc adjustments
1 parent d3df05c commit dcfc26c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

stdlib/public/core/StringIndex.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,27 @@ isn't frozen.
4949

5050
<resilience barrier>
5151

52-
* b3: UTF-16 encoding
52+
* b0: `_isScalarAligned`
5353

54-
If set, the position is known to be expressed in UTF-16 code units.
54+
If set, index is known to be on a Unicode scalar boundary (see below).
55+
(Introduced in Swift 5.1)
56+
57+
* b1: `_isCharacterAligned`
58+
59+
If set, the index is known to be on an extended grapheme cluster
60+
boundary (i.e., on a Swift `Character`.)
5561
(Introduced in Swift 5.7)
5662

5763
* b2: UTF-8 encoding
5864

5965
If set, the position is known to be expressed in UTF-8 code units.
6066
(Introduced in Swift 5.7)
6167

62-
* b1: `_isCharacterAligned`
68+
* b3: UTF-16 encoding
6369

64-
If set, the index is known to be on an extended grapheme cluster
65-
boundary (i.e., on a Swift `Character`.)
70+
If set, the position is known to be expressed in UTF-16 code units.
6671
(Introduced in Swift 5.7)
6772

68-
* b0: `_isScalarAligned`
69-
70-
If set, index is known to be on a Unicode scalar boundary (see below).
71-
(Introduced in Swift 5.1)
72-
7373
Before Swift 5.7, bits b1, b2 and b3 used to be part of the resilient slice. See
7474
the notes on Character Alignment and Index Encoding below to see how this works.
7575

0 commit comments

Comments
 (0)