mirror of
https://github.com/janet-lang/janet
synced 2025-06-21 07:54:12 +00:00
updated string/bytes docs to reflect return value as tuple
This commit is contained in:
parent
f0da793f99
commit
9bf5cd83c3
@ -218,7 +218,7 @@ JANET_CORE_FN(cfun_string_repeat,
|
|||||||
|
|
||||||
JANET_CORE_FN(cfun_string_bytes,
|
JANET_CORE_FN(cfun_string_bytes,
|
||||||
"(string/bytes str)",
|
"(string/bytes str)",
|
||||||
"Returns an array of integers that are the byte values of the string.") {
|
"Returns a tuple of integers that are the byte values of the string.") {
|
||||||
janet_fixarity(argc, 1);
|
janet_fixarity(argc, 1);
|
||||||
JanetByteView view = janet_getbytes(argv, 0);
|
JanetByteView view = janet_getbytes(argv, 0);
|
||||||
Janet *tup = janet_tuple_begin(view.len);
|
Janet *tup = janet_tuple_begin(view.len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user