[前][次][番号順一覧][スレッド一覧]

ruby-changes:65861

From: universato <ko1@a...>
Date: Thu, 15 Apr 2021 02:51:52 +0900 (JST)
Subject: [ruby-changes:65861] b190f6ef13 (master): [ruby/matrix] Fix a typo in a error message

https://git.ruby-lang.org/ruby.git/commit/?id=b190f6ef13

From b190f6ef137c192b69103918864ddb242626edf7 Mon Sep 17 00:00:00 2001
From: universato <universato@g...>
Date: Thu, 15 Apr 2021 02:13:42 +0900
Subject: [ruby/matrix] Fix a typo in a error message

---
 lib/matrix.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/matrix.rb b/lib/matrix.rb
index 298269a..26cda55 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -379,7 +379,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix.rb#L379
   end
 
   private def set_value(row, col, value)
-    raise ErrDimensionMismatch, "Expected a a value, got a #{value.class}" if value.respond_to?(:to_matrix)
+    raise ErrDimensionMismatch, "Expected a value, got a #{value.class}" if value.respond_to?(:to_matrix)
 
     @rows[row][col] = value
   end
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]