summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/listbox.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/listbox.rb')
-rw-r--r--ext/tk/lib/tk/listbox.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/listbox.rb b/ext/tk/lib/tk/listbox.rb
index f00db19239..8a24202d6c 100644
--- a/ext/tk/lib/tk/listbox.rb
+++ b/ext/tk/lib/tk/listbox.rb
@@ -73,8 +73,8 @@ class TkListbox<TkTextWin
self
end
- def index(index)
- tk_send_without_enc('index', index).to_i
+ def index(idx)
+ tk_send_without_enc('index', idx).to_i
end
def value