Skip to content

Commit 8f6ea1d

Browse files
committed
Correct readme
1 parent 51b2ac0 commit 8f6ea1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Readme.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For the sake of brevity, we'll `!` the rest of the examples since we know they'r
3030

3131
``` swift
3232
let (range, string) = diff("Hello world", "Hello there world")!
33-
// range: 6...6
33+
// range: 6..<6
3434
// string: "there "
3535
```
3636

@@ -50,7 +50,7 @@ Diff can diff any array. Here's an array of things that conform to `Equatable`:
5050

5151
``` swift
5252
let (range, replacement) = diff([1, 2, 3], [1, 2, 3, 4])!
53-
// range: 3...3
53+
// range: 3..<3
5454
// replacement: [4]
5555
```
5656

@@ -60,7 +60,7 @@ You can even use arrays of anything as long as you can compare them:
6060
let before: [Foo] = [a, b]
6161
let after: [Foo] = [b]
6262
let (range, replacement) = diff(before, after, compare: Foo.compare)!
63-
// range: 0...0
63+
// range: 0..<1
6464
// replacement: []
6565
```
6666

0 commit comments

Comments
 (0)