Skip to content

Commit f7787cb

Browse files
committed
fix typo
1 parent 61a555c commit f7787cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Ark/DiffableDataSource.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ public class DiffableDataSource<Target: SectionInflator>: NSObject,
7070
}
7171
self.snapshot = snapshot
7272
let result = List.diffing(oldArray: oldSnapshot.sections, newArray: snapshot.sections)
73-
print(result)
7473

75-
func createBactchUpdates(from updates: IndexSet) -> BatchUpdates {
74+
func createBatchUpdates(from updates: IndexSet) -> BatchUpdates {
7675
var result = BatchUpdates()
7776
for section in updates {
7877
let oldItems = oldSnapshot.sections[section].items
@@ -84,7 +83,7 @@ public class DiffableDataSource<Target: SectionInflator>: NSObject,
8483
}
8584
return result
8685
}
87-
let batchUpdates = createBactchUpdates(from: result.updates)
86+
let batchUpdates = createBatchUpdates(from: result.updates)
8887

8988
collectionNode.performBatch(animated: animatingDifferences, updates: { [node = self.collectionNode] in
9089

0 commit comments

Comments
 (0)