From d1d71703048cfdb2cc637bd5c23227828b0a0144 Mon Sep 17 00:00:00 2001 From: sogaiu <33044872+sogaiu@users.noreply.github.com> Date: Mon, 7 Sep 2026 23:08:30 +0000 Subject: [PATCH] Improve docstring for getproto (#1847) Co-authored-by: sogaiu <983021772@users.noreply.github.com> --- src/core/corelib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/corelib.c b/src/core/corelib.c index cfaf647f..541587bc 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -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]);