File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Sources/DiffableTextStylesXNumeric/Number Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 //=------------------------------------------------------------------------=
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments