Skip to content

Commit c440e03

Browse files
reference/functions: correct carg duration min max (#56)
* reference/functions: correct carg duration min max Signed-off-by: SoggySaussages <[email protected]> * reference/functions: remove nanosecond note Signed-off-by: SoggySaussages <[email protected]> * learn/beginner: correct carg duration validation Signed-off-by: SoggySaussages <[email protected]> --------- Signed-off-by: SoggySaussages <[email protected]>
1 parent d3ac208 commit c440e03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/docs/reference/templates/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@ An argument's `"type"` must be one of the following:
22912291
duration)
22922292

22932293
Additionally, the `int`, `float`, and `duration` type support validation ranges in the interval `(min, max)`, where for
2294-
`duration` it is in seconds.
2294+
`duration` it is in [time.Duration format](/docs/reference/templates/syntax-and-data#time) values.
22952295

22962296
##### Example
22972297

content/learn/beginner/command-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Following types support these validation ranges:
133133

134134
- `int`
135135
- `float`
136-
- `duration` (in seconds)
136+
- `duration` (in [time.Duration format](/docs/reference/templates/syntax-and-data#time))
137137

138138
Make sure to use these instead of manually verifying a valid range, if possible, as it makes your code cleaner and
139139
easier to read.

0 commit comments

Comments
 (0)