From cba876ecd1187ec334c2e0ad77b0464b9bb42cc3 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 b025edd..a5d1a61 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