Skip to content

Commit 88e3937

Browse files
authored
Update description (#17)
1 parent b3ed3d9 commit 88e3937

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/StateStruct/PropertyNode.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
@DebugDescription
2-
public struct PropertyNode: Equatable {
1+
public struct PropertyNode: Equatable, CustomDebugStringConvertible {
32

43
public struct Status: OptionSet, Sendable {
54
public let rawValue: Int8
@@ -104,6 +103,9 @@ public struct PropertyNode: Equatable {
104103

105104
}
106105

106+
public var debugDescription: String {
107+
prettyPrint()
108+
}
107109
}
108110

109111
// MARK: PrettyPrint
@@ -113,7 +115,6 @@ extension PropertyNode {
113115
@discardableResult
114116
public func prettyPrint() -> String {
115117
let output = prettyPrint(indent: 0)
116-
print(output)
117118
return output
118119
}
119120

0 commit comments

Comments
 (0)