From e5ef34fb72bde9697e3e9f364652164c8ddf29dc Mon Sep 17 00:00:00 2001 From: "YAMAMORI, Akihiro" <6166778+gecko655@users.noreply.github.com> Date: Fri, 19 Jul 2024 18:40:03 +0900 Subject: [PATCH] Fix documentation for Duration3 Duration3 needs 4 assignments to call. To match`TryOf` documentation, `str, nbr, err, duration` names are used for the assignments. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd836ac0..ea94a528 100644 --- a/README.md +++ b/README.md @@ -1650,7 +1650,7 @@ err, duration := lo.Duration1(func() error { // an error // 3s -err, duration := lo.Duration3(func() (string, int, error) { +str, nbr, err, duration := lo.Duration3(func() (string, int, error) { // very long job return "hello", 42, nil })