1
0
mirror of https://github.com/janet-lang/janet synced 2024-09-29 23:40:40 +00:00

Tweak type docs

This commit is contained in:
sogaiu 2021-01-13 22:59:43 +09:00
parent 4f2d1cdc00
commit c4957d5dfb

View File

@ -645,20 +645,21 @@ static const JanetReg corelib_cfuns[] = {
{ {
"type", janet_core_type, "type", janet_core_type,
JDOC("(type x)\n\n" JDOC("(type x)\n\n"
"Returns the type of x as a keyword. x is one of\n" "Returns the type of `x` as a keyword. `x` is one of:\n\n"
"\t:nil\n" "* :nil\n\n"
"\t:boolean\n" "* :boolean\n\n"
"\t:number\n" "* :number\n\n"
"\t:array\n" "* :array\n\n"
"\t:tuple\n" "* :tuple\n\n"
"\t:table\n" "* :table\n\n"
"\t:struct\n" "* :struct\n\n"
"\t:string\n" "* :string\n\n"
"\t:buffer\n" "* :buffer\n\n"
"\t:symbol\n" "* :symbol\n\n"
"\t:keyword\n" "* :keyword\n\n"
"\t:function\n" "* :function\n\n"
"\t:cfunction\n\n" "* :cfunction\n\n"
"* :fiber\n\n"
"or another keyword for an abstract type.") "or another keyword for an abstract type.")
}, },
{ {