1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 00:10:27 +00:00

Merge pull request #924 from uvtc/patch-2

Update docs for `describe`
This commit is contained in:
Calvin Rose 2022-02-24 18:04:51 -06:00 committed by GitHub
commit 408b03ae0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,7 +339,10 @@ JANET_CORE_FN(janet_core_native,
JANET_CORE_FN(janet_core_describe,
"(describe x)",
"Returns a string that is a human-readable description of a value x.") {
"Returns a string that is a human-readable description of `x`. "
"For recursive data structures, the string returned contains a "
"more or less unique pointer value from which the identity of `x` "
"could be determined.") {
JanetBuffer *b = janet_buffer(0);
for (int32_t i = 0; i < argc; ++i)
janet_description_b(b, argv[i]);