Issue #14427 has been reported by znz (Kazuhiro NISHIYAMA). ---------------------------------------- Bug #14427: Backport r61469 https://bugs.ruby-lang.org/issues/14427 * Author: znz (Kazuhiro NISHIYAMA) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: 2.5.0 * Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED ---------------------------------------- Please backport r61469 to ruby_2_5 branch. 2.5.0: ``` % rbenv exec irb -r irb/completion --simple-prompt >> {foo: 1}.fetch(:fooo) Traceback (most recent call last): 3: from .../bin/irb:11:in `<main>' 2: from (irb):1 1: from (irb):1:in `fetch' KeyError (key not found: :fooo Did you mean? :foo) ``` trunk: ``` >> {foo: 1}.fetch(:fooo) Traceback (most recent call last): 3: from .../bin/irb:11:in `<main>' 2: from (irb):1 1: from (irb):1:in `fetch' KeyError (key not found: :fooo) Did you mean? :foo ``` -- https://bugs.ruby-lang.org/