Skip to content

Commit 8c9f027

Browse files
authored
Fix compile error of sample mac application
1 parent 581b4f8 commit 8c9f027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/Example-macOS/MountainsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class MountainsViewController: NSViewController {
4949
.filter { $0.contains(filter) }
5050
.sorted { $0.name < $1.name }
5151

52-
let snapshot = DiffableDataSourceSnapshot<Section, Mountain>()
52+
var snapshot = DiffableDataSourceSnapshot<Section, Mountain>()
5353
snapshot.appendSections([.main])
5454
snapshot.appendItems(mountains)
5555
dataSource.apply(snapshot)

0 commit comments

Comments
 (0)