From 2ce0cec363e80d56a732acf1b5a5f657d5802270 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Wed, 12 Feb 2020 17:00:02 -0800 Subject: [PATCH] Merge pull request #524 from josharian/doc-params provide param names in DiffForEachFileCallback (cherry picked from commit 917d8dcb9efc5dc506123a7ba4f862340d69ce84) --- diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff.go b/diff.go index eb893ce..1046f8d 100644 --- a/diff.go +++ b/diff.go @@ -284,7 +284,7 @@ type diffForEachData struct { Error error } -type DiffForEachFileCallback func(DiffDelta, float64) (DiffForEachHunkCallback, error) +type DiffForEachFileCallback func(delta DiffDelta, progress float64) (DiffForEachHunkCallback, error) type DiffDetail int