From 0dd91082a12c9f12b0261b415bfd880054ccb23a Mon Sep 17 00:00:00 2001 From: John Gabriele Date: Sun, 17 Apr 2022 20:15:41 -0400 Subject: [PATCH] math.c Fix typo, and backticks around one word. --- src/core/math.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/math.c b/src/core/math.c index 944369c3..5ef249fa 100644 --- a/src/core/math.c +++ b/src/core/math.c @@ -231,7 +231,7 @@ static Janet janet_rng_next(void *p, Janet key) { /* Get a random number */ JANET_CORE_FN(janet_rand, "(math/random)", - "Returns a uniformly distributed random number between 0 and 1") { + "Returns a uniformly distributed random number between 0 and 1.") { (void) argv; janet_fixarity(argc, 0); return janet_wrap_number(janet_rng_double(&janet_vm.rng)); @@ -240,7 +240,7 @@ JANET_CORE_FN(janet_rand, /* Seed the random number generator */ JANET_CORE_FN(janet_srand, "(math/seedrandom seed)", - "Set the seed for the random number generator. seed should be " + "Set the seed for the random number generator. `seed` should be " "an integer or a buffer." ) { janet_fixarity(argc, 1); @@ -261,7 +261,7 @@ JANET_CORE_FN(janet_##name, "(math/" #name " x)", doc) {\ return janet_wrap_number(fop(x)); \ } -JANET_DEFINE_MATHOP(acos, acos, "Returns the arccosize of x.") +JANET_DEFINE_MATHOP(acos, acos, "Returns the arccosine of x.") JANET_DEFINE_MATHOP(asin, asin, "Returns the arcsin of x.") JANET_DEFINE_MATHOP(atan, atan, "Returns the arctangent of x.") JANET_DEFINE_MATHOP(cos, cos, "Returns the cosine of x.")