commit f9fbd5e71d7bfe308d8f5432a8f72239625babd4
parent 4f4edab4ed674ee54e49130f221b73dd05f2b9ba
Author: Byron Torres <b@torresjrjr.com>
Date: Fri, 6 May 2022 15:11:07 +0100
datetime: fix %w docs
Signed-off-by: Byron Torres <b@torresjrjr.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datetime/format.ha b/datetime/format.ha
@@ -188,7 +188,7 @@ fn fmtout(out: io::handle, r: rune, dt: *datetime) (size | io::error) = {
// %u -- The day of the week (decimal, range 1 to 7). 1 represents Monday.
// %U -- The week number of the current year (range 00 to 53),
// starting with the first Sunday as the first day of week 01.
-// %w -- The day of the week (decimal, range 0 to 6). 1 represents Sunday.
+// %w -- The day of the week (decimal, range 0 to 6). 0 represents Sunday.
// %W -- The week number of the current year (range 00 to 53),
// starting with the first Monday as the first day of week 01.
// %y -- The year without the century digits (range 00 to 99).