Skip to content

Commit 242e6ac

Browse files
committed
Cleanup: Context.
1 parent 7a47671 commit 242e6ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/DiffableTextKit/Models/Context.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public final class Context<Style: DiffableTextStyle, Scheme: DiffableTextKit.Sch
5858
}
5959

6060
//=------------------------------------------------------------------------=
61-
// MARK: Update
61+
// MARK: + Update
6262
//=------------------------------------------------------------------------=
6363

6464
extension Context {
@@ -83,7 +83,7 @@ extension Context {
8383
extension Context {
8484

8585
//=------------------------------------------------------------------------=
86-
// MARK: Unfocused / Focused / Dynamic
86+
// MARK: Focus
8787
//=------------------------------------------------------------------------=
8888

8989
@inlinable public func unfocused(style: Style, value: Value) {
@@ -123,7 +123,7 @@ extension Context {
123123
let changeInValue = self.value != update.value
124124
let changeInFocus = self.focus != update.focus
125125
//=--------------------------------------=
126-
// MARK: At Least One Has To Change
126+
// MARK: At Least One Must Change
127127
//=--------------------------------------=
128128
guard changeInStyle || changeInValue || changeInFocus else { return false }
129129
dynamic(style: changeInStyle ? update.style : style, value: update.value, focus: update.focus)

0 commit comments

Comments
 (0)