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

ruby-changes:28064

From: zzak <ko1@a...>
Date: Fri, 5 Apr 2013 12:10:27 +0900 (JST)
Subject: [ruby-changes:28064] zzak:r40116 (trunk): * ext/curses/hello.rb: Typo in Curses example by Drew Blas

zzak	2013-04-05 12:10:14 +0900 (Fri, 05 Apr 2013)

  New Revision: 40116

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40116

  Log:
    * ext/curses/hello.rb: Typo in Curses example by Drew Blas
      [Fixes GH-273]

  Modified files:
    trunk/ChangeLog
    trunk/ext/curses/hello.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40115)
+++ ChangeLog	(revision 40116)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Apr  5 12:06:00 2013  Zachary Scott  <zachary@z...>
+
+	* ext/curses/hello.rb: Typo in Curses example by Drew Blas
+	  [Fixes GH-273]
+
 Thu Apr  4 23:45:13 2013  Tanaka Akira  <akr@f...>
 
 	* lib/resolv.rb (bind_random_port): Rescue EACCES for SunOS.
Index: ext/curses/hello.rb
===================================================================
--- ext/curses/hello.rb	(revision 40115)
+++ ext/curses/hello.rb	(revision 40116)
@@ -7,7 +7,7 @@ def show_message(message) https://github.com/ruby/ruby/blob/trunk/ext/curses/hello.rb#L7
   width = message.length + 6
   win = Window.new(5, width,
 		   (lines - 5) / 2, (cols - width) / 2)
-  win.box(?|, ?-)
+  win.box('|', '-')
   win.setpos(2, 3)
   win.addstr(message)
   win.refresh

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

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