From ec43afb4264ae5acb6371c54397de77ab999d7d5 Mon Sep 17 00:00:00 2001 From: Andrew Chambers Date: Fri, 17 May 2019 20:58:06 +1200 Subject: [PATCH] Minor documentation fixes. --- src/core/os.c | 2 +- src/core/parse.c | 2 +- src/core/string.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/os.c b/src/core/os.c index 9e707b0f..a9e53b07 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -632,7 +632,7 @@ static const JanetReg os_cfuns[] = { #ifndef JANET_REDUCED_OS { "os/dir", os_dir, - JDOC("(os/stat dir [, array])\n\n" + JDOC("(os/dir dir [, array])\n\n" "Iterate over files and subdirectories in a directory. Returns an array of paths parts, " "with only the filename or directory name and no prefix.") }, diff --git a/src/core/parse.c b/src/core/parse.c index 5b89aa76..54af26c2 100644 --- a/src/core/parse.c +++ b/src/core/parse.c @@ -928,7 +928,7 @@ static const JanetReg parse_cfuns[] = { }, { "parser/eof", cfun_parse_eof, - JDOC("(parser/insert parser)\n\n" + JDOC("(parser/eof parser)\n\n" "Indicate that the end of file was reached to the parser. This puts the parser in the :dead state.") }, { diff --git a/src/core/string.c b/src/core/string.c index e274d263..3ac59775 100644 --- a/src/core/string.c +++ b/src/core/string.c @@ -542,8 +542,8 @@ static const JanetReg string_cfuns[] = { }, { "string/from-bytes", cfun_string_frombytes, - JDOC("(string/from-bytes byte-array)\n\n" - "Creates a string from an array of integers with byte values. All integers " + JDOC("(string/from-bytes &byte-vals)\n\n" + "Creates a string from integer params with byte values. All integers " "will be coerced to the range of 1 byte 0-255.") }, {