Improve docstring for getproto (#1847)

Co-authored-by: sogaiu <983021772@users.noreply.github.com>
This commit is contained in:
sogaiuandsogaiu authored and GitHub committed 2026-09-07 18:08:30 -05:00
1 parent 587468d3f4
commit d1d7170304
1 file changed
+3 -2
+3 -2
View File
@@ -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]);