Skip to content

Commit

Permalink
Merge pull request #10 from justbuchanan/master
Browse files Browse the repository at this point in the history
Fixed minor mistake in readme example
  • Loading branch information
pmezard authored Dec 26, 2018
2 parents fca3d27 + 4d7e5c1 commit 5d4384e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,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)
```

Expand Down

0 comments on commit 5d4384e

Please sign in to comment.