commit | 4d7e5c1199c6c6f41571643a498177aa237b284a | [log] [tgz] |
---|---|---|
author | Justin Buchanan <justbuchanan@gmail.com> | Tue Jan 02 11:16:43 2018 |
committer | GitHub <noreply@github.com> | Tue Jan 02 11:16:43 2018 |
tree | 35b925e59280e7e74989ceabdc8b6db40e401dfe | |
parent | 792786c7400a136282c1664665ae0a8db921c6c2 [diff] |
Update README.md
diff --git a/README.md b/README.md index e87f307..2d0f984 100644 --- a/README.md +++ b/README.md
@@ -26,14 +26,14 @@ be output to an io.Writer or returned as a string. ```Go -diff := UnifiedDiff{ +diff := difflib.UnifiedDiff{ A: difflib.SplitLines("foo\nbar\n"), B: difflib.SplitLines("foo\nbaz\n"), FromFile: "Original", ToFile: "Current", Context: 3, } -text, _ := GetUnifiedDiffString(diff) +text, _ := difflib.GetUnifiedDiffString(diff) fmt.Printf(text) ```