File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -943,7 +943,7 @@ type UnifiedDiff = LineDiffParams
943
943
// strings for diff.FromFile, diff.ToFile, diff.FromDate, diff.ToDate.
944
944
// The modification times are normally expressed in the ISO 8601 format.
945
945
// If not specified, the strings default to blanks.
946
- func WriteContextDiff (writer io.Writer , diff ContextDiff ) error {
946
+ func WriteContextDiff (writer io.Writer , diff LineDiffParams ) error {
947
947
buf := bufio .NewWriter (writer )
948
948
defer buf .Flush ()
949
949
var diffErr error
@@ -1028,8 +1028,8 @@ func WriteContextDiff(writer io.Writer, diff ContextDiff) error {
1028
1028
return diffErr
1029
1029
}
1030
1030
1031
- // Like WriteContextDiff but returns the diff a string.
1032
- func GetContextDiffString (diff ContextDiff ) (string , error ) {
1031
+ // Like WriteContextDiff but returns the diff as a string.
1032
+ func GetContextDiffString (diff LineDiffParams ) (string , error ) {
1033
1033
w := & bytes.Buffer {}
1034
1034
err := WriteContextDiff (w , diff )
1035
1035
return string (w .Bytes ()), err
You can’t perform that action at this time.
0 commit comments