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

ruby-changes:41267

From: a_matsuda <ko1@a...>
Date: Sun, 27 Dec 2015 18:59:02 +0900 (JST)
Subject: [ruby-changes:41267] a_matsuda:r53339 (trunk): Typo in Tk samples

a_matsuda	2015-12-27 18:58:48 +0900 (Sun, 27 Dec 2015)

  New Revision: 53339

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

  Log:
    Typo in Tk samples
    
    * ext/tk/sample/demos-en/goldberg.rb: miliseconds => milliseconds
    * ext/tk/sample/demos-jp/goldberg.rb: miliseconds => milliseconds

  Modified files:
    trunk/ext/tk/sample/demos-en/goldberg.rb
    trunk/ext/tk/sample/demos-jp/goldberg.rb
Index: ext/tk/sample/demos-jp/goldberg.rb
===================================================================
--- ext/tk/sample/demos-jp/goldberg.rb	(revision 53338)
+++ ext/tk/sample/demos-jp/goldberg.rb	(revision 53339)
@@ -359,7 +359,7 @@ class TkGoldberg_Demo https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/demos-jp/goldberg.rb#L359
   end
 
   def go(who = nil)
-    now = Tk::Clock.clicks(:miliseconds)
+    now = Tk::Clock.clicks(:milliseconds)
     if who  # Start here for debugging
       @S['active'] = [who]
       @S['mode'].value = :MGO
@@ -369,7 +369,7 @@ class TkGoldberg_Demo https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/demos-jp/goldberg.rb#L369
     n = next_step if @S['mode'].to_sym != :MPAUSE
     @S['mode'].value = :MPAUSE if @S['mode'].to_sym == :MSSTEP  # Single step
     @S['mode'].value = :MSSTEP if @S['mode'].to_sym == :MBSTEP && n  # big step
-    elapsed = Tk::Clock.clicks(:miliseconds) - now
+    elapsed = Tk::Clock.clicks(:milliseconds) - now
     delay = @speed[@S['speed'].to_i] - elapsed
     delay = 1 if delay <= 0
     return delay
@@ -1777,10 +1777,10 @@ class TkGoldberg_Demo https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/demos-jp/goldberg.rb#L1777
     step = get_step(25, step)
 
     if step == 0
-      @XY['25'] = Tk::Clock.clicks(:miliseconds)
+      @XY['25'] = Tk::Clock.clicks(:milliseconds)
       return 1
     end
-    elapsed = Tk::Clock.clicks(:miliseconds) - @XY['25']
+    elapsed = Tk::Clock.clicks(:milliseconds) - @XY['25']
     return 1 if elapsed < 5000
     return 2
   end
Index: ext/tk/sample/demos-en/goldberg.rb
===================================================================
--- ext/tk/sample/demos-en/goldberg.rb	(revision 53338)
+++ ext/tk/sample/demos-en/goldberg.rb	(revision 53339)
@@ -357,7 +357,7 @@ class TkGoldberg_Demo https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/demos-en/goldberg.rb#L357
   end
 
   def go(who = nil)
-    now = Tk::Clock.clicks(:miliseconds)
+    now = Tk::Clock.clicks(:milliseconds)
     if who  # Start here for debugging
       @S['active'] = [who]
       @S['mode'].value = :MGO
@@ -367,7 +367,7 @@ class TkGoldberg_Demo https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/demos-en/goldberg.rb#L367
     n = next_step if @S['mode'].to_sym != :MPAUSE
     @S['mode'].value = :MPAUSE if @S['mode'].to_sym == :MSSTEP  # Single step
     @S['mode'].value = :MSSTEP if @S['mode'].to_sym == :MBSTEP && n  # big step
-    elapsed = Tk::Clock.clicks(:miliseconds) - now
+    elapsed = Tk::Clock.clicks(:milliseconds) - now
     delay = @speed[@S['speed'].to_i] - elapsed
     delay = 1 if delay <= 0
     return delay
@@ -1773,10 +1773,10 @@ class TkGoldberg_Demo https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/demos-en/goldberg.rb#L1773
     step = get_step(25, step)
 
     if step == 0
-      @XY['25'] = Tk::Clock.clicks(:miliseconds)
+      @XY['25'] = Tk::Clock.clicks(:milliseconds)
       return 1
     end
-    elapsed = Tk::Clock.clicks(:miliseconds) - @XY['25']
+    elapsed = Tk::Clock.clicks(:milliseconds) - @XY['25']
     return 1 if elapsed < 5000
     return 2
   end

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

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