diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-24 11:06:48 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-24 11:06:48 +0900 |
| commit | 49f75703ccef5271d3835501316408ef244cef27 (patch) | |
| tree | d5764d1d287c9cc9e3515e818f3b287c5d64f0a6 /mrbgems/mruby-complex | |
| parent | 9ed212ef9eedb09c5368a338ff905e25cdba149f (diff) | |
| download | mruby-49f75703ccef5271d3835501316408ef244cef27.tar.gz mruby-49f75703ccef5271d3835501316408ef244cef27.zip | |
complex.rb: unary plus (`+@`) to return self avoiding copying.
Diffstat (limited to 'mrbgems/mruby-complex')
| -rw-r--r-- | mrbgems/mruby-complex/mrblib/complex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-complex/mrblib/complex.rb b/mrbgems/mruby-complex/mrblib/complex.rb index cd000a6c6..4c36179cb 100644 --- a/mrbgems/mruby-complex/mrblib/complex.rb +++ b/mrbgems/mruby-complex/mrblib/complex.rb @@ -12,7 +12,7 @@ class Complex < Numeric end def +@ - Complex(real, imaginary) + self end def -@ |
