From: Dmitry Gutov Date: Sun, 8 Jan 2023 22:57:36 +0000 (+0200) Subject: ; ruby.rb: Fix pattern matching syntax and extend the example X-Git-Tag: emacs-29.0.90~785 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=20f36c8f6f98478dd86ddfe93da2803de2518ea2;p=emacs.git ; ruby.rb: Fix pattern matching syntax and extend the example --- diff --git a/test/lisp/progmodes/ruby-mode-resources/ruby.rb b/test/lisp/progmodes/ruby-mode-resources/ruby.rb index bfae948b259..3f0dfdf68ba 100644 --- a/test/lisp/progmodes/ruby-mode-resources/ruby.rb +++ b/test/lisp/progmodes/ruby-mode-resources/ruby.rb @@ -513,7 +513,7 @@ foo bar, { case translation in ['th', orig_text, 'en', trans_text] puts "English translation: #{orig_text} => #{trans_text}" -in {'th' => orig_text, 'ja' => trans_text} +in {th: orig_text, ja: trans_text} => whole puts "Japanese translation: #{orig_text} => #{trans_text}" end