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

ruby-changes:14224

From: akr <ko1@a...>
Date: Tue, 8 Dec 2009 04:06:21 +0900 (JST)
Subject: [ruby-changes:14224] Ruby:r26046 (trunk): rdoc update.

akr	2009-12-08 04:06:11 +0900 (Tue, 08 Dec 2009)

  New Revision: 26046

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

  Log:
    rdoc update.

  Modified files:
    trunk/proc.c

Index: proc.c
===================================================================
--- proc.c	(revision 26045)
+++ proc.c	(revision 26046)
@@ -1170,17 +1170,16 @@
  *       def do_e() print "!\n";     end
  *       def do_v() print "Dave";    end
  *       Dispatcher = {
- *        ?a => instance_method(:do_a),
- *        ?d => instance_method(:do_d),
- *        ?e => instance_method(:do_e),
- *        ?v => instance_method(:do_v)
+ *         "a" => instance_method(:do_a),
+ *         "d" => instance_method(:do_d),
+ *         "e" => instance_method(:do_e),
+ *         "v" => instance_method(:do_v)
  *       }
  *       def interpret(string)
- *         string.each_byte {|b| Dispatcher[b].bind(self).call }
+ *         string.each_char {|b| Dispatcher[b].bind(self).call }
  *       end
  *     end
  *
- *
  *     interpreter = Interpreter.new
  *     interpreter.interpret('dave')
  *

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

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