Skip to content

Commit 12e3d50

Browse files
committed
[Doc][Syntax] Update the documented code example since recent API change. rdar://37132409
1 parent 4d9e1b0 commit 12e3d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Syntax/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ class Renamer: SyntaxRewriter {
587587
// Parse a .swift file
588588
let currentFile = URL(fileURLWithPath: "/tmp/test.swift")
589589
let currentFileContents = try String(contentsOf: currentFile)
590-
let parsed = try Syntax.parse(currentFile)
590+
let parsed = try SourceFileSyntax.parse(currentFile)
591591

592592
// Print the original file
593593
print("\n//======== Original =========\n")

0 commit comments

Comments
 (0)