; ruby.rb: Fix pattern matching syntax and extend the example
This commit is contained in:
parent
d46f7f4edc
commit
20f36c8f6f
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ def qux
|
|||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue