mirror of
https://github.com/janet-lang/janet
synced 2026-11-14 17:04:27 +00:00
Improve docstring for getproto (#1847)
Co-authored-by: sogaiu <983021772@users.noreply.github.com>
This commit is contained in:
1 parent
587468d3f4
commit
d1d7170304
1 file changed
+3
-2
+3
-2
@@ -494,8 +494,9 @@ JANET_CORE_FN(janet_core_table,
|
||||
}
|
||||
|
||||
JANET_CORE_FN(janet_core_getproto,
|
||||
"(getproto x)",
|
||||
"Get the prototype of a table or struct. Will return nil if `x` has no prototype.") {
|
||||
"(getproto dict)",
|
||||
"Get the prototype of a dictionary `dict`. Returns `nil` if "
|
||||
"`dict` has no prototype.") {
|
||||
janet_fixarity(argc, 1);
|
||||
if (janet_checktype(argv[0], JANET_TABLE)) {
|
||||
JanetTable *t = janet_unwrap_table(argv[0]);
|
||||
|
||||
Reference in new issue
Block a user