From df28bdd91bba9c606118cd3decad086928eb802c Mon Sep 17 00:00:00 2001 From: "YAMAMORI, Akihiro" <6166778+gecko655@users.noreply.github.com> Date: Mon, 22 Jul 2024 02:18:48 +0900 Subject: [PATCH] Fix documentation for Duration3 (#502) 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 })