We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad777e commit 58ea632Copy full SHA for 58ea632
_examples/changes/main.go
@@ -11,7 +11,7 @@ func main() {
11
b := "Hello, Go!\nSay hi to µDiff"
12
13
edits := udiff.Strings(a, b)
14
- d, err := udiff.ToUnifiedDiff("a.txt", "b.txt", a, edits)
+ d, err := udiff.ToUnifiedDiff("a.txt", "b.txt", a, edits, udiff.DefaultContextLines)
15
if err != nil {
16
panic(err)
17
}
0 commit comments