diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-12-15 20:20:25 +0000 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-12-15 17:27:24 -0500 |
| commit | 7fbf321d23f3cc20988c80fae25ce131a5d1b231 (patch) | |
| tree | 0c67d657e66eecc682a39fdd55ed4fd2d46b9e33 /numeric.c | |
| parent | 98ab418fed61079f8ef7e229ea1b41957ec5722b (diff) | |
[DOC] Harmonize #** methods
Diffstat (limited to 'numeric.c')
| -rw-r--r-- | numeric.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1390,9 +1390,9 @@ flo_divmod(VALUE x, VALUE y) /* * call-seq: - * self ** other -> numeric + * self ** exponent -> numeric * - * Raises +self+ to the power of +other+: + * Returns +self+ raised to the power +exponent+: * * f = 3.14 * f ** 2 # => 9.8596 @@ -4623,9 +4623,9 @@ rb_int_divmod(VALUE x, VALUE y) /* * call-seq: - * self ** numeric -> numeric_result + * self ** exponent -> numeric * - * Raises +self+ to the power of +numeric+: + * Returns +self+ raised to the power +exponent+: * * 2 ** 3 # => 8 * 2 ** -3 # => (1/8) @@ -4748,8 +4748,7 @@ fix_pow(VALUE x, VALUE y) * call-seq: * self ** exponent -> numeric * - * Returns the value of base +self+ raised to the power +exponent+; - * see {Exponentiation}[https://en.wikipedia.org/wiki/Exponentiation]: + * Returns +self+ raised to the power +exponent+: * * # Result for non-negative Integer exponent is Integer. * 2 ** 0 # => 1 |
