summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorMarcus Stollsteimer <sto.mar@web.de>2019-12-13 22:07:59 +0100
committerMarcus Stollsteimer <sto.mar@web.de>2019-12-13 22:07:59 +0100
commitf3240eb67dc4c807f6489a8a5ccb6eeec239efe5 (patch)
treec989ee349b4d7be2a5fe0e30d9cd4e181edc5cee /NEWS
parent835703c69f2b1b770b1e3c8c9dd73aca4ed734e6 (diff)
NEWS: fix pattern matching example
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 2 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 46ab242..c7dd2b3 100644
--- a/NEWS
+++ b/NEWS
@@ -39,8 +39,8 @@ sufficient information, see the ChangeLog file or Redmine
"children": [{ "name": "Bob", "age": 2 }]
}
END
- if JSON.parse(json, symbolize_names: true) in
- {name: "Alice", children: [{name: "Bob", age: age}]}
+ case JSON.parse(json, symbolize_names: true)
+ in {name: "Alice", children: [{name: "Bob", age: age}]}
p age #=> 2
end