1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-17 22:24:49 +00:00

Fix docstrings.

This commit is contained in:
Calvin Rose 2020-04-14 21:32:50 -05:00
parent 605a205008
commit ef3b953a42

View File

@ -646,7 +646,7 @@ static const JanetReg corelib_cfuns[] = {
"getline", janet_core_getline, "getline", janet_core_getline,
JDOC("(getline &opt prompt buf env)\n\n" JDOC("(getline &opt prompt buf env)\n\n"
"Reads a line of input into a buffer, including the newline character, using a prompt. " "Reads a line of input into a buffer, including the newline character, using a prompt. "
"An optional environment table can be provided for autocomplete. " "An optional environment table can be provided for auto-complete. "
"Returns the modified buffer. " "Returns the modified buffer. "
"Use this function to implement a simple interface for a terminal program.") "Use this function to implement a simple interface for a terminal program.")
}, },
@ -680,7 +680,7 @@ static const JanetReg corelib_cfuns[] = {
"\t:all:\tthe value of path verbatim\n" "\t:all:\tthe value of path verbatim\n"
"\t:cur:\tthe current file, or (dyn :current-file)\n" "\t:cur:\tthe current file, or (dyn :current-file)\n"
"\t:dir:\tthe directory containing the current file\n" "\t:dir:\tthe directory containing the current file\n"
"\t:name:\tthe filename component of path, with extenion if given\n" "\t:name:\tthe filename component of path, with extension if given\n"
"\t:native:\tthe extension used to load natives, .so or .dll\n" "\t:native:\tthe extension used to load natives, .so or .dll\n"
"\t:sys:\tthe system path, or (syn :syspath)") "\t:sys:\tthe system path, or (syn :syspath)")
}, },
@ -697,7 +697,7 @@ static const JanetReg corelib_cfuns[] = {
{ {
"slice", janet_core_slice, "slice", janet_core_slice,
JDOC("(slice x &opt start end)\n\n" JDOC("(slice x &opt start end)\n\n"
"Extract a sub-range of an indexed data strutrue or byte sequence.") "Extract a sub-range of an indexed data structure or byte sequence.")
}, },
{ {
"signal", janet_core_signal, "signal", janet_core_signal,