Skip to content

Commit

Permalink
Merge pull request #3 from ianbruene/differ
Browse files Browse the repository at this point in the history
Fixed missing Differ init in README.
  • Loading branch information
ianbruene authored Jun 9, 2019
2 parents ba0ce24 + f21f5bc commit 936e03f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ would output:
Differ has been implemented primarily for the Compare() function at this time.

```Go
diff := difflib.NewDiffer()
out, err := diff.Compare(
[]string{"foo\n", "bar\n", "baz\n"},
[]string{"foo\n", "bar1\n", "asdf\n", "baz\n"})
Expand Down

0 comments on commit 936e03f

Please sign in to comment.