summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-math/src/math.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-10-22 07:10:16 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-10-22 07:10:16 +0900
commit727f2485c9028cbd5eb4085e965bcaada6fb53f6 (patch)
treeb6876bcd35017746de47dc5f3949fcb72ea37c16 /mrbgems/mruby-math/src/math.c
parente5fbf9dfa2bbbe5ecbf6cc25ff5d35e7da7f00e3 (diff)
parentd4238494eb7cd36c510c87ace6c31aeb1d0f1d6b (diff)
downloadmruby-727f2485c9028cbd5eb4085e965bcaada6fb53f6.tar.gz
mruby-727f2485c9028cbd5eb4085e965bcaada6fb53f6.zip
Merge pull request #2999 from sagmor/better-docs
More Docs
Diffstat (limited to 'mrbgems/mruby-math/src/math.c')
-rw-r--r--mrbgems/mruby-math/src/math.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index 109112578..79ad18b90 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -236,7 +236,8 @@ math_tan(mrb_state *mrb, mrb_value obj)
* call-seq:
* Math.asin(x) -> float
*
- * Computes the arc sine of <i>x</i>. Returns -{PI/2} .. {PI/2}.
+ * Computes the arc sine of <i>x</i>.
+ * @return computed value between `-(PI/2)` and `(PI/2)`.
*/
static mrb_value
math_asin(mrb_state *mrb, mrb_value obj)
@@ -276,7 +277,7 @@ math_acos(mrb_state *mrb, mrb_value obj)
* call-seq:
* Math.atan(x) -> float
*
- * Computes the arc tangent of <i>x</i>. Returns -{PI/2} .. {PI/2}.
+ * Computes the arc tangent of <i>x</i>. Returns `-(PI/2) .. (PI/2)`.
*/
static mrb_value
math_atan(mrb_state *mrb, mrb_value obj)