aboutsummaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authorMarcus Stollsteimer <sto.mar@web.de>2021-01-05 15:13:53 +0100
committerMarcus Stollsteimer <sto.mar@web.de>2021-01-05 15:13:53 +0100
commit3108ad7bf3dcae52054a1c29b86246cdb470000b (patch)
tree48879bbd126fe3c3ee37f714130abe7c4a2de49a /math.c
parent3d439447250f19333418adcdf777142dda4b3364 (diff)
downloadruby-3108ad7bf3dcae52054a1c29b86246cdb470000b.tar.gz
[DOC] Fix grammar: "is same as" -> "is the same as"
Diffstat (limited to 'math.c')
-rw-r--r--math.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math.c b/math.c
index f64ad93c06..470979c424 100644
--- a/math.c
+++ b/math.c
@@ -809,7 +809,7 @@ math_erfc(VALUE unused_obj, VALUE x)
*
* Calculates the gamma function of x.
*
- * Note that gamma(n) is same as fact(n-1) for integer n > 0.
+ * Note that gamma(n) is the same as fact(n-1) for integer n > 0.
* However gamma(n) returns float and can be an approximation.
*
* def fact(n) (1..n).inject(1) {|r,i| r*i } end
@@ -900,9 +900,9 @@ math_gamma(VALUE unused_obj, VALUE x)
*
* Calculates the logarithmic gamma of +x+ and the sign of gamma of +x+.
*
- * Math.lgamma(x) is same as
+ * Math.lgamma(x) is the same as
* [Math.log(Math.gamma(x).abs), Math.gamma(x) < 0 ? -1 : 1]
- * but avoid overflow by Math.gamma(x) for large x.
+ * but avoids overflow by Math.gamma(x) for large x.
*
* Math.lgamma(0) #=> [Infinity, 1]
*