{"action":"opened","issue":{"url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/30","labels_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/30/comments","events_url":"https://api.github.com/repos/isocpp/CppCoreGuidelines/issues/30/events","html_url":"https://github.com/isocpp/CppCoreGuidelines/issues/30","id":107340697,"number":30,"title":"Typo in P.7: Catch run-time errors early","user":{"login":"ulfi666","id":14362048,"avatar_url":"https://avatars.githubusercontent.com/u/14362048?v=3","gravatar_id":"","url":"https://api.github.com/users/ulfi666","html_url":"https://github.com/ulfi666","followers_url":"https://api.github.com/users/ulfi666/followers","following_url":"https://api.github.com/users/ulfi666/following{/other_user}","gists_url":"https://api.github.com/users/ulfi666/gists{/gist_id}","starred_url":"https://api.github.com/users/ulfi666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulfi666/subscriptions","organizations_url":"https://api.github.com/users/ulfi666/orgs","repos_url":"https://api.github.com/users/ulfi666/repos","events_url":"https://api.github.com/users/ulfi666/events{/privacy}","received_events_url":"https://api.github.com/users/ulfi666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-19T15:43:35Z","updated_at":"2015-09-19T15:43:35Z","closed_at":null,"body":"```\r\nvoid increment2(array_view<int> p)\r\n{\r\n    for (int x : p) ++x;\r\n}\r\n```\r\nI assume that this should be:\r\n```\r\nvoid increment2(array_view<int> p)\r\n{\r\n    for (int& x : p) ++x;\r\n}\r\n```\r\nbecause otherwise we're incrementing and immediately throw away the result without any side effects, which would contradict the earlier example.\r\n"}}