{"action":"created","issue":{"url":"https://api.github.com/repos/BurntSushi/quickcheck/issues/84","labels_url":"https://api.github.com/repos/BurntSushi/quickcheck/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/quickcheck/issues/84/comments","events_url":"https://api.github.com/repos/BurntSushi/quickcheck/issues/84/events","html_url":"https://github.com/BurntSushi/quickcheck/issues/84","id":96364671,"number":84,"title":"can you explain to me","user":{"login":"RoboMantis","id":5539728,"avatar_url":"https://avatars.githubusercontent.com/u/5539728?v=3","gravatar_id":"","url":"https://api.github.com/users/RoboMantis","html_url":"https://github.com/RoboMantis","followers_url":"https://api.github.com/users/RoboMantis/followers","following_url":"https://api.github.com/users/RoboMantis/following{/other_user}","gists_url":"https://api.github.com/users/RoboMantis/gists{/gist_id}","starred_url":"https://api.github.com/users/RoboMantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoboMantis/subscriptions","organizations_url":"https://api.github.com/users/RoboMantis/orgs","repos_url":"https://api.github.com/users/RoboMantis/repos","events_url":"https://api.github.com/users/RoboMantis/events{/privacy}","received_events_url":"https://api.github.com/users/RoboMantis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T16:48:17Z","updated_at":"2015-07-21T16:48:38Z","closed_at":null,"body":"the out_of_bounds code, what exactly does this do line by line?\r\nextern crate quickcheck;\r\n\r\nuse quickcheck::{TestResult, quickcheck};\r\n\r\nfn main() {\r\n    fn prop(length: usize, index: usize) -> TestResult {\r\n        let v: Vec<_> = (0..length).collect();\r\n        if index < length {\r\n            TestResult::discard()\r\n        } else {\r\n            TestResult::must_fail(move || {\r\n                v[index]\r\n            })\r\n        }\r\n    }\r\n    quickcheck(prop as fn(usize, usize) -> TestResult);\r\n}"},"comment":{"url":"https://api.github.com/repos/BurntSushi/quickcheck/issues/comments/123399740","html_url":"https://github.com/BurntSushi/quickcheck/issues/84#issuecomment-123399740","issue_url":"https://api.github.com/repos/BurntSushi/quickcheck/issues/84","id":123399740,"user":{"login":"RoboMantis","id":5539728,"avatar_url":"https://avatars.githubusercontent.com/u/5539728?v=3","gravatar_id":"","url":"https://api.github.com/users/RoboMantis","html_url":"https://github.com/RoboMantis","followers_url":"https://api.github.com/users/RoboMantis/followers","following_url":"https://api.github.com/users/RoboMantis/following{/other_user}","gists_url":"https://api.github.com/users/RoboMantis/gists{/gist_id}","starred_url":"https://api.github.com/users/RoboMantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoboMantis/subscriptions","organizations_url":"https://api.github.com/users/RoboMantis/orgs","repos_url":"https://api.github.com/users/RoboMantis/repos","events_url":"https://api.github.com/users/RoboMantis/events{/privacy}","received_events_url":"https://api.github.com/users/RoboMantis/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T16:48:38Z","updated_at":"2015-07-21T16:48:38Z","body":"im new to rust"}}