Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Commit 5e4303b

Browse files
authored
Merge pull request #6 from literalpie/patch-2
fix sample code in readme
2 parents 31a3519 + 9565f84 commit 5e4303b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ViewController: UIViewController, UITableViewDelegate {
3232

3333
var collector = DeclarationCollector()
3434
let tree = try SyntaxParser.parse(source: source)
35-
tree.walk(&collector)
35+
collector.walk(tree)
3636

3737
// Import declarations
3838
collector.imports.first?.pathComponents // ["UIKit"]

0 commit comments

Comments
 (0)