Skip to content

Commit 5441ebd

Browse files
committed
fixes examples in readme.
1 parent 50f2039 commit 5441ebd

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
@@ -8,7 +8,7 @@ The algorithm is described by Eugene Myers in
88

99
Example
1010
-------
11-
You can use diff.Ints, diff.Runes, diff.Strings, and diff.Bytes
11+
You can use diff.Ints, diff.Runes, diff.ByteStrings, and diff.Bytes
1212

1313
diff.Runes([]rune("sögen"), []rune("mögen")) // returns []Changes{{0,0,1,1}}
1414

@@ -29,6 +29,6 @@ and call
2929

3030
Also has granularity functions to merge changes that are close by.
3131

32-
diff.GranularStrings("emtire", "umpire", 1) // returns []Changes{{0,0,3,3}}
32+
diff.Granular(1, diff.ByteStrings("emtire", "umpire")) // returns []Changes{{0,0,3,3}}
3333

3434
Documentation at http://godoc.org/github.com/mb0/diff

0 commit comments

Comments
 (0)