From a0cb443abca7bccb55aa8e27026882f687728a16 Mon Sep 17 00:00:00 2001 From: Neelay Upadhyaya Date: Fri, 21 Oct 2022 11:53:06 +0530 Subject: [PATCH] Show correct usage of duration `duration 95` returns 0, as it doesn't satisfy the types(string, int64) present in the switch statement. So the example should show `duration "95"` --- docs/date.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/date.md b/docs/date.md index 55bbf386..9f02651e 100644 --- a/docs/date.md +++ b/docs/date.md @@ -54,7 +54,7 @@ Formats a given amount of seconds as a `time.Duration`. This returns 1m35s ``` -duration 95 +duration "95" ``` ## durationRound