From 019829fdf9ffc151d54ce34cfc88476f029588ff Mon Sep 17 00:00:00 2001 From: sogaiu <33044872+sogaiu@users.noreply.github.com> Date: Thu, 26 Feb 2026 08:51:54 +0900 Subject: [PATCH] Tweak a docstring and a comment (#1718) Co-authored-by: sogaiu <983021772@users.noreply.github.com> --- src/core/fiber.c | 4 ++-- src/core/util.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/fiber.c b/src/core/fiber.c index 95f78493..1d12a59b 100644 --- a/src/core/fiber.c +++ b/src/core/fiber.c @@ -592,8 +592,8 @@ JANET_CORE_FN(cfun_fiber_status, "* :user(0-7) - the fiber is suspended by a user signal\n" "* :interrupted - the fiber was interrupted\n" "* :suspended - the fiber is waiting to be resumed by the scheduler\n" - "* :alive - the fiber is currently running and cannot be resumed\n" - "* :new - the fiber has just been created and not yet run") { + "* :new - the fiber has just been created and not yet run\n" + "* :alive - the fiber is currently running and cannot be resumed") { janet_fixarity(argc, 1); JanetFiber *fiber = janet_getfiber(argv, 0); uint32_t s = janet_fiber_status(fiber); diff --git a/src/core/util.c b/src/core/util.c index 723b64f2..c3d3e2d7 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -268,7 +268,7 @@ int32_t janet_kv_calchash(const JanetKV *kvs, int32_t len) { return (int32_t) hash; } -/* Calculate next power of 2. May overflow. If n is 0, +/* Calculate next power of 2. May overflow. If n < 0, * will return 0. */ int32_t janet_tablen(int32_t n) { if (n < 0) return 0;