summaryrefslogtreecommitdiff
path: root/ext/tk/sample
diff options
context:
space:
mode:
authora_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:58:48 +0000
committera_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:58:48 +0000
commite04b5c3e23dde44c8fb75449ff81ff1424a4c615 (patch)
tree0c276966d2406ca527ebeda6e598c6d5e8f19648 /ext/tk/sample
parent2cf20887afe229db436e3d44257f595f220fd17a (diff)
Typo in Tk samples
* ext/tk/sample/demos-en/goldberg.rb: miliseconds => milliseconds * ext/tk/sample/demos-jp/goldberg.rb: miliseconds => milliseconds git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample')
-rw-r--r--ext/tk/sample/demos-en/goldberg.rb8
-rw-r--r--ext/tk/sample/demos-jp/goldberg.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/tk/sample/demos-en/goldberg.rb b/ext/tk/sample/demos-en/goldberg.rb
index 555ad4a..729cdf0 100644
--- a/ext/tk/sample/demos-en/goldberg.rb
+++ b/ext/tk/sample/demos-en/goldberg.rb
@@ -357,7 +357,7 @@ class TkGoldberg_Demo
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
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
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
diff --git a/ext/tk/sample/demos-jp/goldberg.rb b/ext/tk/sample/demos-jp/goldberg.rb
index cc039b2..a5718da 100644
--- a/ext/tk/sample/demos-jp/goldberg.rb
+++ b/ext/tk/sample/demos-jp/goldberg.rb
@@ -359,7 +359,7 @@ class TkGoldberg_Demo
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
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
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