1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-16 13:38:06 +00:00

Merge pull request #835 from MorganPeterson/update-string-docs

Updated string/bytes docs to reflect return value as tuple
This commit is contained in:
Calvin Rose
2021-10-12 00:22:50 -05:00
committed by GitHub

View File

@@ -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);