Skip to content

Commit

Permalink
fix: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 15, 2023
1 parent 4ad777e commit 58ea632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _examples/changes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func main() {
b := "Hello, Go!\nSay hi to µDiff"

edits := udiff.Strings(a, b)
d, err := udiff.ToUnifiedDiff("a.txt", "b.txt", a, edits)
d, err := udiff.ToUnifiedDiff("a.txt", "b.txt", a, edits, udiff.DefaultContextLines)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 58ea632

Please sign in to comment.