From a17ae977a57ff45e38a7ffee71ea1e612dde55ac Mon Sep 17 00:00:00 2001 From: Florian Beeres Date: Sat, 11 Jan 2025 22:51:21 +0100 Subject: [PATCH] docstring int/u64 int/s64: supports number as well Update the docstrings of the u64 and s64 functions to indicate that they work on numbers as well strings. Previously the docstring only mentioned string support. --- src/core/inttypes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/inttypes.c b/src/core/inttypes.c index 39ef4ea6..855793d7 100644 --- a/src/core/inttypes.c +++ b/src/core/inttypes.c @@ -191,14 +191,14 @@ Janet janet_wrap_u64(uint64_t x) { JANET_CORE_FN(cfun_it_s64_new, "(int/s64 value)", - "Create a boxed signed 64 bit integer from a string value.") { + "Create a boxed signed 64 bit integer from a string value or a number.") { janet_fixarity(argc, 1); return janet_wrap_s64(janet_unwrap_s64(argv[0])); } JANET_CORE_FN(cfun_it_u64_new, "(int/u64 value)", - "Create a boxed unsigned 64 bit integer from a string value.") { + "Create a boxed unsigned 64 bit integer from a string value or a number.") { janet_fixarity(argc, 1); return janet_wrap_u64(janet_unwrap_u64(argv[0])); }