1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Diff.debugDescription gets the debug strings for its contents.

This commit is contained in:
Rob Rix 2015-09-15 14:09:45 -04:00
parent d3b82148b8
commit bf10dfca2d

View File

@ -22,9 +22,9 @@ public enum Diff: CustomDebugStringConvertible, CustomDocConvertible, Equatable
case .Empty:
return ".Empty"
case let .Patch(a, b):
return ".Patch(\(a), \(b))"
return ".Patch(\(String(reflecting: a)), \(String(reflecting: b)))"
case let .Copy(a):
return ".Copy(\(a))"
return ".Copy(\(String(reflecting: a)))"
}
}