From 4d91c507c47733024a8ff331b5843caca482221f Mon Sep 17 00:00:00 2001 From: sogaiu <33044872+sogaiu@users.noreply.github.com> Date: Thu, 27 Aug 2026 01:07:02 +0000 Subject: [PATCH] Make table/to-struct's docstring less wordy (#1834) Co-authored-by: sogaiu <983021772@users.noreply.github.com> --- src/core/table.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/table.c b/src/core/table.c index 4ab6e6fb..2466c458 100644 --- a/src/core/table.c +++ b/src/core/table.c @@ -384,11 +384,11 @@ JANET_CORE_FN(cfun_table_setproto, JANET_CORE_FN(cfun_table_tostruct, "(table/to-struct tab &opt proto)", - "Create and return a struct based on a table `tab`. " - "If given, the optional argument `proto` specifies " - "a struct to be used as the newly created struct's " - "prototype. Note that if `proto` is not specified, " - "the newly created struct will not have a prototype.") { + "Return a struct based on a table `tab`. If given, " + "the optional argument `proto` specifies the new " + "struct's prototype. Note that if `proto` is not " + "specified, the new struct will not have a " + "prototype.") { janet_arity(argc, 1, 2); JanetTable *t = janet_gettable(argv, 0); JanetStruct proto = janet_optstruct(argv, argc, 1, NULL);