From 2a04347a42bcc4560d107eec62060ee926648ce4 Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:52:37 +0900 Subject: [PATCH] Tweak debug/stacktrace docstring (#1365) --- src/core/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/debug.c b/src/core/debug.c index 5f1ffe18..35b2b331 100644 --- a/src/core/debug.c +++ b/src/core/debug.c @@ -388,8 +388,8 @@ JANET_CORE_FN(cfun_debug_stack, JANET_CORE_FN(cfun_debug_stacktrace, "(debug/stacktrace fiber &opt err prefix)", "Prints a nice looking stacktrace for a fiber. Can optionally provide " - "an error value to print the stack trace with. If `err` is nil or not " - "provided, and no prefix is given, will skip the error line. Returns the fiber.") { + "an error value to print the stack trace with. If `prefix` is nil or not " + "provided, will skip the error line. Returns the fiber.") { janet_arity(argc, 1, 3); JanetFiber *fiber = janet_getfiber(argv, 0); Janet x = argc == 1 ? janet_wrap_nil() : argv[1];