Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/onmyway133/DeepDiff
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/onmyway133/DeepDiff:
  Update README.md
  Update DeepDiff.swift
  • Loading branch information
onmyway133 committed Apr 12, 2018
2 parents 8f9ddf5 + d47167a commit f6e6c1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ let changes = diff(old: old, new: new)
```swift
let old = Array("abcd")
let new = Array("adbc")
let changes = diff(old: old, new: new, reduceMove: true)
let changes = diff(old: old, new: new)

// Move "d" from index 3 to index 1
```
Expand Down
1 change: 0 additions & 1 deletion Sources/Shared/DeepDiff.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Foundation
/// - Parameters:
/// - old: Old collection
/// - new: New collection
/// - reduceMove: Reduce move from insertions and deletions
/// - Returns: A set of changes
public func diff<T: Hashable>(
old: Array<T>,
Expand Down

0 comments on commit f6e6c1c

Please sign in to comment.