Skip to content

Commit

Permalink
Prohibit diff between different types (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuniwak authored Oct 13, 2017
1 parent c1c18da commit 31903de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MirrorDiffKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public func !~<T> (_ lhs: T, _ rhs: T) -> Bool {
}


public func diff(between a: Any, and b: Any) -> String {
public func diff<T>(between a: T, and b: T) -> String {
let diff = Diffable.diff(
between: Diffable.from(any: a),
and: Diffable.from(any: b)
Expand Down

0 comments on commit 31903de

Please sign in to comment.