aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-02-09 13:39:24 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-02-09 13:39:24 +0900
commite077a910b62ef448380c3f9607d740e5c98100b3 (patch)
tree8c7f7fa66d6e787a0f0cdb011b9a70957a47da4e /lib
parenta28c166f787710227c6aac54befd72778f041485 (diff)
downloadruby-e077a910b62ef448380c3f9607d740e5c98100b3.tar.gz
Fix message of ExceptionForMatrix::ErrOperationNotDefined
``` % RBENV_VERSION=2.6.5 ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' #<ExceptionForMatrix::ErrOperationNotDefined: Operation(*) can't be defined: Vector op Vector> % RBENV_VERSION=2.7.0 ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' #<ExceptionForMatrix::ErrOperationNotDefined: Operation(*) can\'t be defined: Vector op Vector> % RBENV_VERSION=master ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' #<ExceptionForMatrix::ErrOperationNotDefined: Operation(*) can't be defined: Vector op Vector> ```
Diffstat (limited to 'lib')
-rw-r--r--lib/matrix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index fc0e8ef2f7..81e3f596ca 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -38,7 +38,7 @@ module ExceptionForMatrix # :nodoc:
class ErrOperationNotDefined < StandardError
def initialize(vals)
if vals.is_a?(Array)
- super("Operation(#{vals[0]}) can\\'t be defined: #{vals[1]} op #{vals[2]}")
+ super("Operation(#{vals[0]}) can't be defined: #{vals[1]} op #{vals[2]}")
else
super(vals)
end