From 354896bc4b0b859f52b6d5fdd4c2ddec42e3c2ec Mon Sep 17 00:00:00 2001 From: sogaiu <983021772@users.noreply.github.com> Date: Sat, 3 Feb 2024 15:48:19 +0900 Subject: [PATCH] Add to propagate docstring (#1365) --- src/core/corelib.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/core/corelib.c b/src/core/corelib.c index e6a60d7b..ce711878 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -1150,11 +1150,14 @@ JanetTable *janet_core_env(JanetTable *replacements) { janet_quick_asm(env, JANET_FUN_PROP, "propagate", 2, 2, 2, 2, propagate_asm, sizeof(propagate_asm), JDOC("(propagate x fiber)\n\n" - "Propagate a signal from a fiber to the current fiber. The resulting " - "stack trace from the current fiber will include frames from fiber. If " - "fiber is in a state that can be resumed, resuming the current fiber will " - "first resume fiber. This function can be used to re-raise an error without " - "losing the original stack trace.")); + "Propagate a signal from a fiber to the current fiber and " + "set the last value of the current fiber to `x`. The signal " + "value is then available as the status of the current fiber. " + "The resulting stack trace from the current fiber will include " + "frames from fiber. If fiber is in a state that can be resumed, " + "resuming the current fiber will first resume `fiber`. " + "This function can be used to re-raise an error without losing " + "the original stack trace.")); janet_quick_asm(env, JANET_FUN_DEBUG, "debug", 1, 0, 1, 1, debug_asm, sizeof(debug_asm), JDOC("(debug &opt x)\n\n"