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

ruby-changes:56655

From: Kazuhiro <ko1@a...>
Date: Thu, 25 Jul 2019 16:40:36 +0900 (JST)
Subject: [ruby-changes:56655] Kazuhiro NISHIYAMA: d8e90f5558 (master): Fix a typo in inspect

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

From d8e90f555817146d17ec82a55360b6d69c649d67 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Thu, 25 Jul 2019 16:39:28 +0900
Subject: Fix a typo in inspect


diff --git a/lib/csv.rb b/lib/csv.rb
index aaa0c48..fcf54a2 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -1306,7 +1306,7 @@ class CSV https://github.com/ruby/ruby/blob/trunk/lib/csv.rb#L1306
   # ASCII compatible String.
   #
   def inspect
-    str = ["<#", self.class.to_s, " io_type:"]
+    str = ["#<", self.class.to_s, " io_type:"]
     # show type of wrapped IO
     if    @io == $stdout then str << "$stdout"
     elsif @io == $stdin  then str << "$stdin"
-- 
cgit v0.10.2


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

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