diff options
author | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-07-17 19:12:04 -0300 |
---|---|---|
committer | Abinoam Praxedes Marques Jr <abinoam@gmail.com> | 2015-07-19 21:59:17 -0300 |
commit | 8ca40cd1db4e1b6600e4369b73cbd94281372f99 (patch) | |
tree | 61793d91456bdd0604cd0fca55a181501825b7d8 /lib/highline/terminal | |
parent | 691c1d9043884f99ea6333eb648ae4640b02e725 (diff) | |
download | highline-8ca40cd1db4e1b6600e4369b73cbd94281372f99.tar.gz |
Change local variable name 'string' to 'str'
... so it doesn't shadow an argument with same name.
Diffstat (limited to 'lib/highline/terminal')
-rw-r--r-- | lib/highline/terminal/io_console.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/highline/terminal/io_console.rb b/lib/highline/terminal/io_console.rb index f53489f..1539acb 100644 --- a/lib/highline/terminal/io_console.rb +++ b/lib/highline/terminal/io_console.rb @@ -52,8 +52,8 @@ class HighLine def readline_read(string, question) # prep auto-completion - Readline.completion_proc = lambda do |string| - question.selection.grep(/\A#{Regexp.escape(string)}/) + Readline.completion_proc = lambda do |str| + question.selection.grep(/\A#{Regexp.escape(str)}/) end # work-around ugly readline() warnings |