From 4d7e5c1199c6c6f41571643a498177aa237b284a Mon Sep 17 00:00:00 2001 From: Justin Buchanan Date: Tue, 2 Jan 2018 03:16:43 -0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e87f307..2d0f984 100644 --- a/README.md +++ b/README.md @@ -26,14 +26,14 @@ Diffs are configured with Unified (or ContextDiff) structures, and can 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) ```