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

Merge pull request #579 from sogaiu/tweak-type-docs

Tweak type docs
This commit is contained in:
Calvin Rose 2021-01-13 12:26:30 -06:00 committed by GitHub
commit 9b42d5a5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.")
}, },
{ {