mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Correct docs for type form.
This commit is contained in:
		| @@ -70,10 +70,10 @@ static JanetSlot genericSSI(JanetFopts opts, int op, JanetSlot s, int32_t imm) { | ||||
|  | ||||
| /* Emit an insruction that implements a form by itself. */ | ||||
| static JanetSlot opfunction( | ||||
|         JanetFopts opts, | ||||
|         JanetSlot *args, | ||||
|         int op, | ||||
|         Janet defaultArg2) { | ||||
|     JanetFopts opts, | ||||
|     JanetSlot *args, | ||||
|     int op, | ||||
|     Janet defaultArg2) { | ||||
|     JanetCompiler *c = opts.compiler; | ||||
|     int32_t len; | ||||
|     len = janet_v_count(args); | ||||
| @@ -82,7 +82,8 @@ static JanetSlot opfunction( | ||||
|         t = janetc_gettarget(opts); | ||||
|         janetc_emit_sss(c, op, t, args[0], janetc_cslot(defaultArg2), 1); | ||||
|         return t; | ||||
|     } else if (len == 2) { | ||||
|     } else { | ||||
|         /* len == 2 */ | ||||
|         t = janetc_gettarget(opts); | ||||
|         janetc_emit_sss(c, op, t, args[0], args[1], 1); | ||||
|     } | ||||
|   | ||||
| @@ -599,11 +599,10 @@ static const JanetReg corelib_cfuns[] = { | ||||
|     { | ||||
|         "type", janet_core_type, | ||||
|         JDOC("(type x)\n\n" | ||||
|              "Returns the type of x as a keyword symbol. x is one of\n" | ||||
|              "Returns the type of x as a keyword. x is one of\n" | ||||
|              "\t:nil\n" | ||||
|              "\t:boolean\n" | ||||
|              "\t:integer\n" | ||||
|              "\t:real\n" | ||||
|              "\t:number\n" | ||||
|              "\t:array\n" | ||||
|              "\t:tuple\n" | ||||
|              "\t:table\n" | ||||
| @@ -614,7 +613,7 @@ static const JanetReg corelib_cfuns[] = { | ||||
|              "\t:keyword\n" | ||||
|              "\t:function\n" | ||||
|              "\t:cfunction\n\n" | ||||
|              "or another symbol for an abstract type.") | ||||
|              "or another keyword for an abstract type.") | ||||
|     }, | ||||
|     { | ||||
|         "hash", janet_core_hash, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose