From e077a910b62ef448380c3f9607d740e5c98100b3 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Sun, 9 Feb 2020 13:39:24 +0900 Subject: [PATCH] Fix message of ExceptionForMatrix::ErrOperationNotDefined ``` % RBENV_VERSION=2.6.5 ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' # % RBENV_VERSION=2.7.0 ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' # % RBENV_VERSION=master ruby -r matrix -e 'Vector[1]*Vector[2] rescue p($!)' # ``` --- lib/matrix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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