From ecadc17e2affe38356997d6fe0cb69563ed5768f Mon Sep 17 00:00:00 2001 From: sogaiu <33044872+sogaiu@users.noreply.github.com> Date: Sat, 12 Sep 2026 23:40:01 +0000 Subject: [PATCH] Modify debug/unbreak and tuple/setmap docstrings (#1864) Co-authored-by: sogaiu <983021772@users.noreply.github.com> --- src/core/debug.c | 8 ++++---- src/core/tuple.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/debug.c b/src/core/debug.c index 6c39dfe8..2beeb5ed 100644 --- a/src/core/debug.c +++ b/src/core/debug.c @@ -232,10 +232,10 @@ JANET_CORE_FN(cfun_debug_break, } JANET_CORE_FN(cfun_debug_unbreak, - "(debug/unbreak source line column)", - "Remove a breakpoint with a source key at a given line and column. " - "Will throw an error if the breakpoint " - "cannot be found.") { + "(debug/unbreak source line col)", + "Remove a breakpoint from `source` at a given `line` and " + "`col`. Will throw an error if the breakpoint cannot be " + "found.") { JanetFuncDef *def; int32_t offset = 0; helper_find(argc, argv, &def, &offset); diff --git a/src/core/tuple.c b/src/core/tuple.c index 5e09e41a..7b943896 100644 --- a/src/core/tuple.c +++ b/src/core/tuple.c @@ -106,9 +106,9 @@ JANET_CORE_FN(cfun_tuple_sourcemap, } JANET_CORE_FN(cfun_tuple_setmap, - "(tuple/setmap tup line column)", - "Set the sourcemap metadata on a tuple. line and column indicate " - "should be integers.") { + "(tuple/setmap tup line col)", + "Set the sourcemap metadata on a tuple, `tup`. `line` and " + "`col` should be integers.") { janet_fixarity(argc, 3); const Janet *tup = janet_gettuple(argv, 0); janet_tuple_head(tup)->sm_line = janet_getinteger(argv, 1);