aboutsummaryrefslogtreecommitdiffstats
path: root/ext/tk/sample/tkhello.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/sample/tkhello.rb')
-rw-r--r--ext/tk/sample/tkhello.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/sample/tkhello.rb b/ext/tk/sample/tkhello.rb
index 5188fe1c8c..ab236963e8 100644
--- a/ext/tk/sample/tkhello.rb
+++ b/ext/tk/sample/tkhello.rb
@@ -5,6 +5,6 @@ TkButton.new(nil,
'command' => proc{print "hello\n"}).pack('fill'=>'x')
TkButton.new(nil,
'text' => 'quit',
- 'command' => 'exit').pack('fill'=>'x')
+ 'command' => proc{exit}).pack('fill'=>'x')
Tk.mainloop