Skip to content

Commit 4d7e5c1

Browse files
authored
Update README.md
1 parent 792786c commit 4d7e5c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Diffs are configured with Unified (or ContextDiff) structures, and can
2626
be output to an io.Writer or returned as a string.
2727

2828
```Go
29-
diff := UnifiedDiff{
29+
diff := difflib.UnifiedDiff{
3030
A: difflib.SplitLines("foo\nbar\n"),
3131
B: difflib.SplitLines("foo\nbaz\n"),
3232
FromFile: "Original",
3333
ToFile: "Current",
3434
Context: 3,
3535
}
36-
text, _ := GetUnifiedDiffString(diff)
36+
text, _ := difflib.GetUnifiedDiffString(diff)
3737
fmt.Printf(text)
3838
```
3939

0 commit comments

Comments
 (0)