Skip to content

Commit 15a539d

Browse files
authored
parse file contents
currentFile -> currentFileContents
1 parent 67f185c commit 15a539d

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 SourceFileSyntax.parse(currentFile)
590+
let parsed = try SourceFileSyntax.parse(currentFileContents)
591591

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

0 commit comments

Comments
 (0)