File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -1122,9 +1122,9 @@ complex_pow_for_special_angle(VALUE self, VALUE other)
11221122
11231123/*
11241124 * call-seq:
1125- * complex ** numeric -> new_complex
1125+ * self ** exponent -> complex
11261126 *
1127- * Returns +self+ raised to power +numeric +:
1127+ * Returns +self+ raised to the power +exponent +:
11281128 *
11291129 * Complex.rect(0, 1) ** 2 # => (-1+0i)
11301130 * Complex.rect(-8) ** Rational(1, 3) # => (1.0000000000000002+1.7320508075688772i)
Original file line number Diff line number Diff line change @@ -1390,9 +1390,9 @@ flo_divmod(VALUE x, VALUE y)
13901390
13911391/*
13921392 * call-seq:
1393- * self ** other -> numeric
1393+ * self ** exponent -> numeric
13941394 *
1395- * Raises +self+ to the power of +other +:
1395+ * Returns +self+ raised to the power +exponent +:
13961396 *
13971397 * f = 3.14
13981398 * f ** 2 # => 9.8596
@@ -4623,9 +4623,9 @@ rb_int_divmod(VALUE x, VALUE y)
46234623
46244624/*
46254625 * call-seq:
4626- * self ** numeric -> numeric_result
4626+ * self ** exponent -> numeric
46274627 *
4628- * Raises +self+ to the power of +numeric +:
4628+ * Returns +self+ raised to the power +exponent +:
46294629 *
46304630 * 2 ** 3 # => 8
46314631 * 2 ** -3 # => (1/8)
@@ -4748,8 +4748,7 @@ fix_pow(VALUE x, VALUE y)
47484748 * call-seq:
47494749 * self ** exponent -> numeric
47504750 *
4751- * Returns the value of base +self+ raised to the power +exponent+;
4752- * see {Exponentiation}[https://en.wikipedia.org/wiki/Exponentiation]:
4751+ * Returns +self+ raised to the power +exponent+:
47534752 *
47544753 * # Result for non-negative Integer exponent is Integer.
47554754 * 2 ** 0 # => 1
Original file line number Diff line number Diff line change @@ -984,9 +984,9 @@ nurat_fdiv(VALUE self, VALUE other)
984984
985985/*
986986 * call-seq:
987- * rat ** numeric -> numeric
987+ * self ** exponent -> numeric
988988 *
989- * Performs exponentiation.
989+ * Returns +self+ raised to the power +exponent+:
990990 *
991991 * Rational(2) ** Rational(3) #=> (8/1)
992992 * Rational(10) ** -2 #=> (1/100)
You can’t perform that action at this time.
0 commit comments