Skip to content

Commit

Permalink
Merge pull request #1544 from cideM/docstring-fixes
Browse files Browse the repository at this point in the history
Fix docstrings for int/u64, int/s64 and int/to-number
  • Loading branch information
bakpakin authored Jan 14, 2025
2 parents 60d9f97 + a17ae97 commit 2b49903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/inttypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,21 +191,21 @@ 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]));
}

JANET_CORE_FN(cfun_to_number,
"(int/to-number value)",
"Convert an int/u64 or int/s64 to a number. Fails if the number is out of range for an int32.") {
"Convert an int/u64 or int/s64 to a number. Fails if the number is out of range for an int64.") {
janet_fixarity(argc, 1);
if (janet_type(argv[0]) == JANET_ABSTRACT) {
void *abst = janet_unwrap_abstract(argv[0]);
Expand Down

0 comments on commit 2b49903

Please sign in to comment.