From 00c6b83537aba54f63b92a009dde6fbd0343a8e0 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 25 Jul 2024 21:02:38 +0200 Subject: [PATCH] Use constants in example. --- core/time/time.odin | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/time/time.odin b/core/time/time.odin index 922a7c307..e4ec67be3 100644 --- a/core/time/time.odin +++ b/core/time/time.odin @@ -525,7 +525,7 @@ Returns: - res: The formatted string, backed by `buf`. Example: - buf: [8]u8 + buf: [MIN_YY_DATE_LEN]u8 now := time.now() fmt.println(time.to_string_yy_mm_dd(now, buf[:])) */ @@ -557,7 +557,7 @@ Returns: - res: The formatted string, backed by `buf`. Example: - buf: [10]u8 + buf: [MIN_YYYY_DATE_LEN]u8 now := time.now() fmt.println(time.to_string_dd_mm_yyyy(now, buf[:])) */ @@ -591,7 +591,7 @@ Returns: - res: The formatted string, backed by `buf`. Example: - buf: [8]u8 + buf: [MIN_YY_DATE_LEN]u8 now := time.now() fmt.println(time.to_string_dd_mm_yy(now, buf[:])) */ @@ -623,7 +623,7 @@ Returns: - res: The formatted string, backed by `buf`. Example: - buf: [10]u8 + buf: [MIN_YYYY_DATE_LEN]u8 now := time.now() fmt.println(time.to_string_mm_dd_yyyy(now, buf[:])) */ @@ -657,7 +657,7 @@ Returns: - res: The formatted string, backed by `buf`. Example: - buf: [8]u8 + buf: [MIN_YY_DATE_LEN]u8 now := time.now() fmt.println(time.to_string_mm_dd_yy(now, buf[:])) */