Skip to content

Commit f21f5bc

Browse files
committed
Fixed missing Differe init in README.
1 parent b27fcbb commit f21f5bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ would output:
5757
Differ has been implemented primarily for the Compare() function at this time.
5858

5959
```Go
60+
diff := difflib.NewDiffer()
6061
out, err := diff.Compare(
6162
[]string{"foo\n", "bar\n", "baz\n"},
6263
[]string{"foo\n", "bar1\n", "asdf\n", "baz\n"})

0 commit comments

Comments
 (0)