diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-06 15:02:31 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-06 15:02:31 +0000 |
commit | 49dc86649202a87c71442a6e127ea04b87300b4c (patch) | |
tree | d3b5dd3f4c01ae9b4dbd593d47bad2c4f16627eb /bignum.c | |
parent | 956cfb974f3620c4517dd7740cbcbdfaf50ab572 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |