{"action":"created","comment":{"url":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/comments/33061917","id":33061917,"diff_hunk":"@@ -1,8 +1,7 @@\n /// Reverse the items in the list from [0..index].\n #[inline]\n fn reverse_until_index<T>(v: &mut Vec<T>, index: usize) {\n-    let (mut first, _) = v.split_at_mut(index+1);\n-    first.reverse();\n+    v[..index+1].reverse();","path":"pancake/src/lib.rs","position":6,"original_position":6,"commit_id":"85ee1df76ee4f26ebba2e391e61fd8d2de21f6df","original_commit_id":"85ee1df76ee4f26ebba2e391e61fd8d2de21f6df","user":{"login":"brianquinlan","id":8851008,"avatar_url":"https://avatars.githubusercontent.com/u/8851008?v=3","gravatar_id":"","url":"https://api.github.com/users/brianquinlan","html_url":"https://github.com/brianquinlan","followers_url":"https://api.github.com/users/brianquinlan/followers","following_url":"https://api.github.com/users/brianquinlan/following{/other_user}","gists_url":"https://api.github.com/users/brianquinlan/gists{/gist_id}","starred_url":"https://api.github.com/users/brianquinlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianquinlan/subscriptions","organizations_url":"https://api.github.com/users/brianquinlan/orgs","repos_url":"https://api.github.com/users/brianquinlan/repos","events_url":"https://api.github.com/users/brianquinlan/events{/privacy}","received_events_url":"https://api.github.com/users/brianquinlan/received_events","type":"User","site_admin":false},"body":"Nice!","created_at":"2015-06-23T16:36:22Z","updated_at":"2015-06-23T16:36:22Z","html_url":"https://github.com/brianquinlan/learn-rust/pull/4#discussion_r33061917","pull_request_url":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/comments/33061917"},"html":{"href":"https://github.com/brianquinlan/learn-rust/pull/4#discussion_r33061917"},"pull_request":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4","id":37968167,"html_url":"https://github.com/brianquinlan/learn-rust/pull/4","diff_url":"https://github.com/brianquinlan/learn-rust/pull/4.diff","patch_url":"https://github.com/brianquinlan/learn-rust/pull/4.patch","issue_url":"https://api.github.com/repos/brianquinlan/learn-rust/issues/4","number":4,"state":"open","locked":false,"title":"Use .reverse() on mutable slices.","user":{"login":"Dr-Emann","id":1153779,"avatar_url":"https://avatars.githubusercontent.com/u/1153779?v=3","gravatar_id":"","url":"https://api.github.com/users/Dr-Emann","html_url":"https://github.com/Dr-Emann","followers_url":"https://api.github.com/users/Dr-Emann/followers","following_url":"https://api.github.com/users/Dr-Emann/following{/other_user}","gists_url":"https://api.github.com/users/Dr-Emann/gists{/gist_id}","starred_url":"https://api.github.com/users/Dr-Emann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dr-Emann/subscriptions","organizations_url":"https://api.github.com/users/Dr-Emann/orgs","repos_url":"https://api.github.com/users/Dr-Emann/repos","events_url":"https://api.github.com/users/Dr-Emann/events{/privacy}","received_events_url":"https://api.github.com/users/Dr-Emann/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-18T03:18:25Z","updated_at":"2015-06-23T16:36:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5edb752be45696a832ce355182f62819e4684dab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4/commits","review_comments_url":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4/comments","review_comment_url":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brianquinlan/learn-rust/issues/4/comments","statuses_url":"https://api.github.com/repos/brianquinlan/learn-rust/statuses/85ee1df76ee4f26ebba2e391e61fd8d2de21f6df","head":{"label":"Dr-Emann:reverse_slices","ref":"reverse_slices","sha":"85ee1df76ee4f26ebba2e391e61fd8d2de21f6df","user":{"login":"Dr-Emann","id":1153779,"avatar_url":"https://avatars.githubusercontent.com/u/1153779?v=3","gravatar_id":"","url":"https://api.github.com/users/Dr-Emann","html_url":"https://github.com/Dr-Emann","followers_url":"https://api.github.com/users/Dr-Emann/followers","following_url":"https://api.github.com/users/Dr-Emann/following{/other_user}","gists_url":"https://api.github.com/users/Dr-Emann/gists{/gist_id}","starred_url":"https://api.github.com/users/Dr-Emann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dr-Emann/subscriptions","organizations_url":"https://api.github.com/users/Dr-Emann/orgs","repos_url":"https://api.github.com/users/Dr-Emann/repos","events_url":"https://api.github.com/users/Dr-Emann/events{/privacy}","received_events_url":"https://api.github.com/users/Dr-Emann/received_events","type":"User","site_admin":false},"repo":{"id":37530729,"name":"learn-rust","full_name":"Dr-Emann/learn-rust","owner":{"login":"Dr-Emann","id":1153779,"avatar_url":"https://avatars.githubusercontent.com/u/1153779?v=3","gravatar_id":"","url":"https://api.github.com/users/Dr-Emann","html_url":"https://github.com/Dr-Emann","followers_url":"https://api.github.com/users/Dr-Emann/followers","following_url":"https://api.github.com/users/Dr-Emann/following{/other_user}","gists_url":"https://api.github.com/users/Dr-Emann/gists{/gist_id}","starred_url":"https://api.github.com/users/Dr-Emann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dr-Emann/subscriptions","organizations_url":"https://api.github.com/users/Dr-Emann/orgs","repos_url":"https://api.github.com/users/Dr-Emann/repos","events_url":"https://api.github.com/users/Dr-Emann/events{/privacy}","received_events_url":"https://api.github.com/users/Dr-Emann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dr-Emann/learn-rust","description":"Projects to help me learn the Rust programming language","fork":true,"url":"https://api.github.com/repos/Dr-Emann/learn-rust","forks_url":"https://api.github.com/repos/Dr-Emann/learn-rust/forks","keys_url":"https://api.github.com/repos/Dr-Emann/learn-rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dr-Emann/learn-rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dr-Emann/learn-rust/teams","hooks_url":"https://api.github.com/repos/Dr-Emann/learn-rust/hooks","issue_events_url":"https://api.github.com/repos/Dr-Emann/learn-rust/issues/events{/number}","events_url":"https://api.github.com/repos/Dr-Emann/learn-rust/events","assignees_url":"https://api.github.com/repos/Dr-Emann/learn-rust/assignees{/user}","branches_url":"https://api.github.com/repos/Dr-Emann/learn-rust/branches{/branch}","tags_url":"https://api.github.com/repos/Dr-Emann/learn-rust/tags","blobs_url":"https://api.github.com/repos/Dr-Emann/learn-rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dr-Emann/learn-rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dr-Emann/learn-rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dr-Emann/learn-rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dr-Emann/learn-rust/statuses/{sha}","languages_url":"https://api.github.com/repos/Dr-Emann/learn-rust/languages","stargazers_url":"https://api.github.com/repos/Dr-Emann/learn-rust/stargazers","contributors_url":"https://api.github.com/repos/Dr-Emann/learn-rust/contributors","subscribers_url":"https://api.github.com/repos/Dr-Emann/learn-rust/subscribers","subscription_url":"https://api.github.com/repos/Dr-Emann/learn-rust/subscription","commits_url":"https://api.github.com/repos/Dr-Emann/learn-rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dr-Emann/learn-rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dr-Emann/learn-rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dr-Emann/learn-rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dr-Emann/learn-rust/contents/{+path}","compare_url":"https://api.github.com/repos/Dr-Emann/learn-rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dr-Emann/learn-rust/merges","archive_url":"https://api.github.com/repos/Dr-Emann/learn-rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dr-Emann/learn-rust/downloads","issues_url":"https://api.github.com/repos/Dr-Emann/learn-rust/issues{/number}","pulls_url":"https://api.github.com/repos/Dr-Emann/learn-rust/pulls{/number}","milestones_url":"https://api.github.com/repos/Dr-Emann/learn-rust/milestones{/number}","notifications_url":"https://api.github.com/repos/Dr-Emann/learn-rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dr-Emann/learn-rust/labels{/name}","releases_url":"https://api.github.com/repos/Dr-Emann/learn-rust/releases{/id}","created_at":"2015-06-16T13:09:49Z","updated_at":"2015-06-16T13:09:49Z","pushed_at":"2015-06-18T03:16:38Z","git_url":"git://github.com/Dr-Emann/learn-rust.git","ssh_url":"git@github.com:Dr-Emann/learn-rust.git","clone_url":"https://github.com/Dr-Emann/learn-rust.git","svn_url":"https://github.com/Dr-Emann/learn-rust","homepage":"","size":150,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brianquinlan:master","ref":"master","sha":"de3b5815f71e010c7010f33a304bdca850c79d75","user":{"login":"brianquinlan","id":8851008,"avatar_url":"https://avatars.githubusercontent.com/u/8851008?v=3","gravatar_id":"","url":"https://api.github.com/users/brianquinlan","html_url":"https://github.com/brianquinlan","followers_url":"https://api.github.com/users/brianquinlan/followers","following_url":"https://api.github.com/users/brianquinlan/following{/other_user}","gists_url":"https://api.github.com/users/brianquinlan/gists{/gist_id}","starred_url":"https://api.github.com/users/brianquinlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianquinlan/subscriptions","organizations_url":"https://api.github.com/users/brianquinlan/orgs","repos_url":"https://api.github.com/users/brianquinlan/repos","events_url":"https://api.github.com/users/brianquinlan/events{/privacy}","received_events_url":"https://api.github.com/users/brianquinlan/received_events","type":"User","site_admin":false},"repo":{"id":35167022,"name":"learn-rust","full_name":"brianquinlan/learn-rust","owner":{"login":"brianquinlan","id":8851008,"avatar_url":"https://avatars.githubusercontent.com/u/8851008?v=3","gravatar_id":"","url":"https://api.github.com/users/brianquinlan","html_url":"https://github.com/brianquinlan","followers_url":"https://api.github.com/users/brianquinlan/followers","following_url":"https://api.github.com/users/brianquinlan/following{/other_user}","gists_url":"https://api.github.com/users/brianquinlan/gists{/gist_id}","starred_url":"https://api.github.com/users/brianquinlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianquinlan/subscriptions","organizations_url":"https://api.github.com/users/brianquinlan/orgs","repos_url":"https://api.github.com/users/brianquinlan/repos","events_url":"https://api.github.com/users/brianquinlan/events{/privacy}","received_events_url":"https://api.github.com/users/brianquinlan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brianquinlan/learn-rust","description":"Projects to help me learn the Rust programming language","fork":false,"url":"https://api.github.com/repos/brianquinlan/learn-rust","forks_url":"https://api.github.com/repos/brianquinlan/learn-rust/forks","keys_url":"https://api.github.com/repos/brianquinlan/learn-rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brianquinlan/learn-rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brianquinlan/learn-rust/teams","hooks_url":"https://api.github.com/repos/brianquinlan/learn-rust/hooks","issue_events_url":"https://api.github.com/repos/brianquinlan/learn-rust/issues/events{/number}","events_url":"https://api.github.com/repos/brianquinlan/learn-rust/events","assignees_url":"https://api.github.com/repos/brianquinlan/learn-rust/assignees{/user}","branches_url":"https://api.github.com/repos/brianquinlan/learn-rust/branches{/branch}","tags_url":"https://api.github.com/repos/brianquinlan/learn-rust/tags","blobs_url":"https://api.github.com/repos/brianquinlan/learn-rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brianquinlan/learn-rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brianquinlan/learn-rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/brianquinlan/learn-rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brianquinlan/learn-rust/statuses/{sha}","languages_url":"https://api.github.com/repos/brianquinlan/learn-rust/languages","stargazers_url":"https://api.github.com/repos/brianquinlan/learn-rust/stargazers","contributors_url":"https://api.github.com/repos/brianquinlan/learn-rust/contributors","subscribers_url":"https://api.github.com/repos/brianquinlan/learn-rust/subscribers","subscription_url":"https://api.github.com/repos/brianquinlan/learn-rust/subscription","commits_url":"https://api.github.com/repos/brianquinlan/learn-rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/brianquinlan/learn-rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/brianquinlan/learn-rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/brianquinlan/learn-rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/brianquinlan/learn-rust/contents/{+path}","compare_url":"https://api.github.com/repos/brianquinlan/learn-rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brianquinlan/learn-rust/merges","archive_url":"https://api.github.com/repos/brianquinlan/learn-rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brianquinlan/learn-rust/downloads","issues_url":"https://api.github.com/repos/brianquinlan/learn-rust/issues{/number}","pulls_url":"https://api.github.com/repos/brianquinlan/learn-rust/pulls{/number}","milestones_url":"https://api.github.com/repos/brianquinlan/learn-rust/milestones{/number}","notifications_url":"https://api.github.com/repos/brianquinlan/learn-rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brianquinlan/learn-rust/labels{/name}","releases_url":"https://api.github.com/repos/brianquinlan/learn-rust/releases{/id}","created_at":"2015-05-06T15:29:27Z","updated_at":"2015-06-23T15:05:33Z","pushed_at":"2015-06-23T16:33:17Z","git_url":"git://github.com/brianquinlan/learn-rust.git","ssh_url":"git@github.com:brianquinlan/learn-rust.git","clone_url":"https://github.com/brianquinlan/learn-rust.git","svn_url":"https://github.com/brianquinlan/learn-rust","homepage":"","size":383,"stargazers_count":51,"watchers_count":51,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4"},"html":{"href":"https://github.com/brianquinlan/learn-rust/pull/4"},"issue":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/issues/4"},"comments":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/brianquinlan/learn-rust/statuses/85ee1df76ee4f26ebba2e391e61fd8d2de21f6df"}}}}