summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-06 15:02:31 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-06 15:02:31 +0000
commit49dc86649202a87c71442a6e127ea04b87300b4c (patch)
treed3b5dd3f4c01ae9b4dbd593d47bad2c4f16627eb /bignum.c
parent956cfb974f3620c4517dd7740cbcbdfaf50ab572 (diff)
`Integer#pow(b)` accepts numeric
instead of integer only and returns numeric instead of integer only same as `Integer#**` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 94d0d50c8f..291ed96f01 100644
--- a/bignum.c
+++ b/bignum.c
@@ -7028,7 +7028,7 @@ int_pow_tmp2(VALUE x, VALUE y, long mm, int nega_flg)
/*
* Document-method: Integer#pow
* call-seq:
- * integer.pow(integer) -> integer
+ * integer.pow(numeric) -> numeric
* integer.pow(integer, integer) -> integer
*
* Returns (modular) exponentiation as: