Skip to content

Commit 2b49903

Browse files
authored
Merge pull request #1544 from cideM/docstring-fixes
Fix docstrings for int/u64, int/s64 and int/to-number
2 parents 60d9f97 + a17ae97 commit 2b49903

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/inttypes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,21 +191,21 @@ Janet janet_wrap_u64(uint64_t x) {
191191

192192
JANET_CORE_FN(cfun_it_s64_new,
193193
"(int/s64 value)",
194-
"Create a boxed signed 64 bit integer from a string value.") {
194+
"Create a boxed signed 64 bit integer from a string value or a number.") {
195195
janet_fixarity(argc, 1);
196196
return janet_wrap_s64(janet_unwrap_s64(argv[0]));
197197
}
198198

199199
JANET_CORE_FN(cfun_it_u64_new,
200200
"(int/u64 value)",
201-
"Create a boxed unsigned 64 bit integer from a string value.") {
201+
"Create a boxed unsigned 64 bit integer from a string value or a number.") {
202202
janet_fixarity(argc, 1);
203203
return janet_wrap_u64(janet_unwrap_u64(argv[0]));
204204
}
205205

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

0 commit comments

Comments
 (0)