diff options
author | a_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-27 09:58:48 +0000 |
---|---|---|
committer | a_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-27 09:58:48 +0000 |
commit | e04b5c3e23dde44c8fb75449ff81ff1424a4c615 (patch) | |
tree | 0c276966d2406ca527ebeda6e598c6d5e8f19648 /ext/tk/sample/demos-jp | |
parent | 2cf20887afe229db436e3d44257f595f220fd17a (diff) | |
download | ruby-e04b5c3e23dde44c8fb75449ff81ff1424a4c615.tar.gz |
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/demos-jp')
-rw-r--r-- | ext/tk/sample/demos-jp/goldberg.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/sample/demos-jp/goldberg.rb b/ext/tk/sample/demos-jp/goldberg.rb index cc039b2d62..a5718dae6b 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 |