Skip to content

Commit

Permalink
Fix printChange implementation bug (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Apr 23, 2024
1 parent f5d0b68 commit 0fa2879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ extension _DynamicPropertyBuffer {
@inline(__always)
private static var lastChangedMask: UInt32 { 0x8000_0000 }
var lastChanged: Bool {
get { (_fieldOffsetAndLastChanged & Item.fieldOffsetMask) == Item.fieldOffsetMask }
get { (_fieldOffsetAndLastChanged & Item.lastChangedMask) == Item.lastChangedMask }
set {
if newValue {
_fieldOffsetAndLastChanged |= Item.lastChangedMask
Expand Down
2 changes: 1 addition & 1 deletion Sources/OpenSwiftUI/View/Debug/ChangedBodyProperty.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func printChangedBodyProperties<Body>(of type: Body.Type) {
if properties.isEmpty {
result.append(": unchanged.")
} else {
result.append(": \(properties.joined(separator: " ,")) changed.")
result.append(": \(properties.joined(separator: ", ")) changed.")
}
print(result)
}
Expand Down

0 comments on commit 0fa2879

Please sign in to comment.