{"action":"opened","issue":{"url":"https://api.github.com/repos/SketchUp/api-issue-tracker/issues/161","repository_url":"https://api.github.com/repos/SketchUp/api-issue-tracker","labels_url":"https://api.github.com/repos/SketchUp/api-issue-tracker/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/SketchUp/api-issue-tracker/issues/161/comments","events_url":"https://api.github.com/repos/SketchUp/api-issue-tracker/issues/161/events","html_url":"https://github.com/SketchUp/api-issue-tracker/issues/161","id":376408941,"node_id":"MDU6SXNzdWUzNzY0MDg5NDE=","number":161,"title":"Geom::Bounds2d constructor example uses curly braces incorrectly as argument","user":{"login":"DanRathbun","id":334837,"node_id":"MDQ6VXNlcjMzNDgzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/334837?v=4","gravatar_id":"","url":"https://api.github.com/users/DanRathbun","html_url":"https://github.com/DanRathbun","followers_url":"https://api.github.com/users/DanRathbun/followers","following_url":"https://api.github.com/users/DanRathbun/following{/other_user}","gists_url":"https://api.github.com/users/DanRathbun/gists{/gist_id}","starred_url":"https://api.github.com/users/DanRathbun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanRathbun/subscriptions","organizations_url":"https://api.github.com/users/DanRathbun/orgs","repos_url":"https://api.github.com/users/DanRathbun/repos","events_url":"https://api.github.com/users/DanRathbun/events{/privacy}","received_events_url":"https://api.github.com/users/DanRathbun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-01T14:11:53Z","updated_at":"2018-11-01T14:11:53Z","closed_at":null,"author_association":"NONE","body":"**`Geom::Bounds2d`** constructor example uses curly braces incorrectly as argument, _viz_:\r\n```ruby\r\nbounds = Geom::Bounds2d.new({0.0, 0.0, 1.0, 1.0})\r\n```\r\nThis will result in Ruby thinking the argument is a hash object, and producing this error message:\r\n```\r\nError: #<SyntaxError: <filename>: syntax error, unexpected ',', expecting =>\r\nbounds = Geom::Bounds2d.new({0.0, 0.0, 1.0, 1.0})\r\n                                 ^>\r\n```\r\n\r\nIf wishing to show the `Float` array then it should be:\r\n```ruby\r\nbounds = Geom::Bounds2d.new([0.0, 0.0, 1.0, 1.0])\r\n```\r\n... otherwise for the 4 argument parameter list, just remove the curly braces."}}
{"actor":{"display_login":"DanRathbun"}}