summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk/entry.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tk/entry.rb')
-rw-r--r--ext/tk/lib/tk/entry.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/entry.rb b/ext/tk/lib/tk/entry.rb
index a3c0e51cdd..0fe553d55c 100644
--- a/ext/tk/lib/tk/entry.rb
+++ b/ext/tk/lib/tk/entry.rb
@@ -32,8 +32,8 @@ class TkEntry<TkLabel
#self
index
end
- def index(index)
- number(tk_send_without_enc('index', index))
+ def index(idx)
+ number(tk_send_without_enc('index', idx))
end
def insert(pos,text)
tk_send_without_enc('insert', pos, _get_eval_enc_str(text))