Skip to content

Commit

Permalink
Show correct usage of duration
Browse files Browse the repository at this point in the history
`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"`
  • Loading branch information
neelayu committed Oct 21, 2022
1 parent 5a09ebd commit a0cb443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/date.md
Expand Up @@ -54,7 +54,7 @@ Formats a given amount of seconds as a `time.Duration`.
This returns 1m35s

```
duration 95
duration "95"
```

## durationRound
Expand Down

0 comments on commit a0cb443

Please sign in to comment.