Skip to content

Commit 35315d5

Browse files
committed
CustomStringConvertible: Conforms to CustomStringConvertible
1 parent 1b956f5 commit 35315d5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Sources/ZPLBuilder/Commands/Hyphen.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public enum Hyphen: ZPLCommandConvertible {
10+
public enum Hyphen: ZPLCommandConvertible, CustomStringConvertible {
1111
/// \\&. Carriage return/line feed
1212
case `return`
1313
/// \\(*). Soft hyphen (word break with a dash)
@@ -24,4 +24,8 @@ public enum Hyphen: ZPLCommandConvertible {
2424
case .backslash: return #"\\"#
2525
}
2626
}
27+
28+
public var description: String {
29+
command
30+
}
2731
}

0 commit comments

Comments
 (0)