Skip to content

Commit bba2ea8

Browse files
committed
Cleanup: comments.
1 parent 01f508b commit bba2ea8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/DiffableTextStylesXNumeric/Number/Glyph.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import Foundation
1313
// MARK: * Glyph
1414
//*============================================================================*
1515

16-
/// An object representing an ASCII character by its UTF8 value.
16+
/// An object representing an UTF-8 encoded ASCII character.
1717
///
18-
/// - The conforming object MUST be a struct.
18+
/// - The conforming object MUST be a struct (have a bit pattern equal to its rawValue).
1919
///
2020
@usableFromInline protocol Glyph: Hashable, CaseIterable, CustomStringConvertible {
2121
associatedtype Enumeration: CaseIterable, RawRepresentable where Enumeration.RawValue == UInt8
22-
22+
2323
//=------------------------------------------------------------------------=
2424
// MARK: State
2525
//=------------------------------------------------------------------------=

Sources/DiffableTextStylesXNumeric/Number/Glyphs.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
// MARK: * Glyphs
1212
//*============================================================================*
1313

14-
/// An object representing multiple ASCII characters by their UTF8 values.
14+
/// An object representing multiple UTF-8 encoded ASCII characters.
1515
@usableFromInline protocol Glyphs: CustomStringConvertible {
1616

1717
//=------------------------------------------------------------------------=
1818
// MARK: Conversions
1919
//=------------------------------------------------------------------------=
2020

21-
/// Returns the ASCII representation of this instance as UTF8 encoded bytes.
21+
/// Returns its UTF-8 encoded ASCII representation.
2222
@inlinable var rawValue: [UInt8] { get }
2323
}
2424

@@ -32,7 +32,7 @@ extension Glyphs {
3232
// MARK: Characters / Description
3333
//=------------------------------------------------------------------------=
3434

35-
/// Returns the ASCII representation of this instance as a String.
35+
/// Returns its ASCII representation.
3636
@inlinable var description: String {
3737
String(bytes: rawValue, encoding: .utf8)!
3838
}

0 commit comments

Comments
 (0)