Skip to content

Commit 7121d2b

Browse files
Follow Through on the rename.
1 parent 2edae66 commit 7121d2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

difflib/difflib.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ type UnifiedDiff = LineDiffParams
943943
// strings for diff.FromFile, diff.ToFile, diff.FromDate, diff.ToDate.
944944
// The modification times are normally expressed in the ISO 8601 format.
945945
// 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 {
947947
buf := bufio.NewWriter(writer)
948948
defer buf.Flush()
949949
var diffErr error
@@ -1028,8 +1028,8 @@ func WriteContextDiff(writer io.Writer, diff ContextDiff) error {
10281028
return diffErr
10291029
}
10301030

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) {
10331033
w := &bytes.Buffer{}
10341034
err := WriteContextDiff(w, diff)
10351035
return string(w.Bytes()), err

0 commit comments

Comments
 (0)