Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ f_addsub(VALUE self, VALUE other,
* call-seq:
* cmp + numeric -> complex
*
* Performs addition on the first member of the Complex.
* Performs addition.
*
* Complex(5, 2) + 3 # => (8+2i)
* Complex(11, 3) + 4 # => (15+3i)
Expand All @@ -699,10 +699,9 @@ nucomp_add(VALUE self, VALUE other)
* call-seq:
* cmp - numeric -> complex
*
* Performs subtraction on the first member of the Complex.
* Performs subtraction.
*
* Complex(33, 12) - 10 # => (23+12i)
* Complex(12.4, 3.5) - 5 # => (7.4+3.5i)
*/
static VALUE
nucomp_sub(VALUE self, VALUE other)
Expand All @@ -714,10 +713,9 @@ nucomp_sub(VALUE self, VALUE other)
* call-seq:
* cmp * numeric -> complex
*
* Performs multiplication on the two members.
* Performs multiplication.
*
* Complex(78, 58) * 10 # => (780+580i)
* Complex(5.6, 3.4) * 10 # => (56+34i)
*/
static VALUE
nucomp_mul(VALUE self, VALUE other)
Expand Down