Skip to content

Commit c4ff5a1

Browse files
committed
[NFC] Update StringObject comments
1 parent 5ba5be3 commit c4ff5a1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

stdlib/public/core/StringObject.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -499,20 +499,20 @@ extension _StringObject {
499499
├───┬───┬───┬───┬───┬───┬───┬───┼───┬───┬────┬────┬────┬────┬────┬────────────┤
500500
│ 0 │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 10 │ 11 │ 12 │ 13 │ 14 │ 15 │
501501
├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼────┼────┼────┼────┼────┼────────────┤
502-
│ a │ b │ c │ d │ e │ f │ g │ h │ i │ j │ k │ l │ m │ n │ o │ 1x0x count │
502+
│ a │ b │ c │ d │ e │ f │ g │ h │ i │ j │ k │ l │ m │ n │ o │ 1x10 count │
503503
└───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴────┴────┴────┴────┴────┴────────────┘
504504

505505
On 32-bit platforms, we have less space to store code units, and it isn't
506506
contiguous. However, we still use the above layout for the RawBitPattern
507507
representation.
508508

509-
┌───────────────┬───────────────────┬───────┬─────────┐
510-
│ _count │_variant .immortal │_discr │ _flags │
511-
├───┬───┬───┬───┼───┬───┬───┬───┬───┼───────┼────┬────┤
512-
│ 0 │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 10 │ 11 │
513-
├───┼───┼───┼───┼───┴───┴───┴───┴───┼───────┼────┼────┤
514-
│ a │ b │ c │ d │ e f g h │x10 cnt│ i │ j │
515-
└───┴───┴───┴───┴───────────────────┴───────┴────┴────┘
509+
┌───────────────┬───────────────────┬───────┬─────────┐
510+
│ _count │_variant .immortal │ _discr │ _flags │
511+
├───┬───┬───┬───┼───┬───┬───┬───┬───┼───────┼────┬────┤
512+
│ 0 │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 10 │ 11 │
513+
├───┼───┼───┼───┼───┴───┴───┴───┴───┼───────┼────┼────┤
514+
│ a │ b │ c │ d │ e f g h │1x10 cnt│ i │ j │
515+
└───┴───┴───┴───┴───────────────────┴───────┴────┴────┘
516516

517517
*/
518518
extension _StringObject {

0 commit comments

Comments
 (0)