{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/4","id":43596318,"html_url":"https://github.com/jiyinyiyong/swift-is-like-go/pull/4","diff_url":"https://github.com/jiyinyiyong/swift-is-like-go/pull/4.diff","patch_url":"https://github.com/jiyinyiyong/swift-is-like-go/pull/4.patch","issue_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/issues/4","number":4,"state":"closed","locked":false,"title":"variable-number-of-arguments.go: Sum the numbers, not the indexes.","user":{"login":"octo","id":116087,"avatar_url":"https://avatars.githubusercontent.com/u/116087?v=3","gravatar_id":"","url":"https://api.github.com/users/octo","html_url":"https://github.com/octo","followers_url":"https://api.github.com/users/octo/followers","following_url":"https://api.github.com/users/octo/following{/other_user}","gists_url":"https://api.github.com/users/octo/gists{/gist_id}","starred_url":"https://api.github.com/users/octo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octo/subscriptions","organizations_url":"https://api.github.com/users/octo/orgs","repos_url":"https://api.github.com/users/octo/repos","events_url":"https://api.github.com/users/octo/events{/privacy}","received_events_url":"https://api.github.com/users/octo/received_events","type":"User","site_admin":false},"body":"In an expression like\r\n\r\n```go\r\nslice := []int{42, 597, 12}\r\nfor i, v := range slice {\r\n  // …\r\n}\r\n```\r\n\r\n`i` is the *index* and `v` is the actual *value*. Since you're not using the index in the example, this patch assigns it to the blank identifier `_`.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/jiyinyiyong/swift-is-like-go/4)\n<!-- Reviewable:end -->\n","created_at":"2015-08-28T06:05:47Z","updated_at":"2015-08-28T07:17:32Z","closed_at":"2015-08-28T07:17:32Z","merged_at":"2015-08-28T07:17:32Z","merge_commit_sha":"ffdb45d9175e2f2b67c0ebf03aea2289e2ac6e4e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/issues/4/comments","statuses_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/statuses/2ad56cbb826145467040de997fa56265a4004ee4","head":{"label":"octo:master","ref":"master","sha":"2ad56cbb826145467040de997fa56265a4004ee4","user":{"login":"octo","id":116087,"avatar_url":"https://avatars.githubusercontent.com/u/116087?v=3","gravatar_id":"","url":"https://api.github.com/users/octo","html_url":"https://github.com/octo","followers_url":"https://api.github.com/users/octo/followers","following_url":"https://api.github.com/users/octo/following{/other_user}","gists_url":"https://api.github.com/users/octo/gists{/gist_id}","starred_url":"https://api.github.com/users/octo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octo/subscriptions","organizations_url":"https://api.github.com/users/octo/orgs","repos_url":"https://api.github.com/users/octo/repos","events_url":"https://api.github.com/users/octo/events{/privacy}","received_events_url":"https://api.github.com/users/octo/received_events","type":"User","site_admin":false},"repo":{"id":41528767,"name":"swift-is-like-go","full_name":"octo/swift-is-like-go","owner":{"login":"octo","id":116087,"avatar_url":"https://avatars.githubusercontent.com/u/116087?v=3","gravatar_id":"","url":"https://api.github.com/users/octo","html_url":"https://github.com/octo","followers_url":"https://api.github.com/users/octo/followers","following_url":"https://api.github.com/users/octo/following{/other_user}","gists_url":"https://api.github.com/users/octo/gists{/gist_id}","starred_url":"https://api.github.com/users/octo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octo/subscriptions","organizations_url":"https://api.github.com/users/octo/orgs","repos_url":"https://api.github.com/users/octo/repos","events_url":"https://api.github.com/users/octo/events{/privacy}","received_events_url":"https://api.github.com/users/octo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/octo/swift-is-like-go","description":"Comparing Swift synax with Go's","fork":true,"url":"https://api.github.com/repos/octo/swift-is-like-go","forks_url":"https://api.github.com/repos/octo/swift-is-like-go/forks","keys_url":"https://api.github.com/repos/octo/swift-is-like-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octo/swift-is-like-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octo/swift-is-like-go/teams","hooks_url":"https://api.github.com/repos/octo/swift-is-like-go/hooks","issue_events_url":"https://api.github.com/repos/octo/swift-is-like-go/issues/events{/number}","events_url":"https://api.github.com/repos/octo/swift-is-like-go/events","assignees_url":"https://api.github.com/repos/octo/swift-is-like-go/assignees{/user}","branches_url":"https://api.github.com/repos/octo/swift-is-like-go/branches{/branch}","tags_url":"https://api.github.com/repos/octo/swift-is-like-go/tags","blobs_url":"https://api.github.com/repos/octo/swift-is-like-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octo/swift-is-like-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octo/swift-is-like-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/octo/swift-is-like-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octo/swift-is-like-go/statuses/{sha}","languages_url":"https://api.github.com/repos/octo/swift-is-like-go/languages","stargazers_url":"https://api.github.com/repos/octo/swift-is-like-go/stargazers","contributors_url":"https://api.github.com/repos/octo/swift-is-like-go/contributors","subscribers_url":"https://api.github.com/repos/octo/swift-is-like-go/subscribers","subscription_url":"https://api.github.com/repos/octo/swift-is-like-go/subscription","commits_url":"https://api.github.com/repos/octo/swift-is-like-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/octo/swift-is-like-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/octo/swift-is-like-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/octo/swift-is-like-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/octo/swift-is-like-go/contents/{+path}","compare_url":"https://api.github.com/repos/octo/swift-is-like-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octo/swift-is-like-go/merges","archive_url":"https://api.github.com/repos/octo/swift-is-like-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octo/swift-is-like-go/downloads","issues_url":"https://api.github.com/repos/octo/swift-is-like-go/issues{/number}","pulls_url":"https://api.github.com/repos/octo/swift-is-like-go/pulls{/number}","milestones_url":"https://api.github.com/repos/octo/swift-is-like-go/milestones{/number}","notifications_url":"https://api.github.com/repos/octo/swift-is-like-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octo/swift-is-like-go/labels{/name}","releases_url":"https://api.github.com/repos/octo/swift-is-like-go/releases{/id}","created_at":"2015-08-28T05:24:01Z","updated_at":"2015-08-28T05:24:01Z","pushed_at":"2015-08-28T06:02:51Z","git_url":"git://github.com/octo/swift-is-like-go.git","ssh_url":"git@github.com:octo/swift-is-like-go.git","clone_url":"https://github.com/octo/swift-is-like-go.git","svn_url":"https://github.com/octo/swift-is-like-go","homepage":"http://repo.tiye.me/swift-is-like-go/index.html","size":217,"stargazers_count":0,"watchers_count":0,"language":"Cirru","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":"jiyinyiyong:master","ref":"master","sha":"b3991ca168b826ba71380faf34634c9b9d7a1f84","user":{"login":"jiyinyiyong","id":449224,"avatar_url":"https://avatars.githubusercontent.com/u/449224?v=3","gravatar_id":"","url":"https://api.github.com/users/jiyinyiyong","html_url":"https://github.com/jiyinyiyong","followers_url":"https://api.github.com/users/jiyinyiyong/followers","following_url":"https://api.github.com/users/jiyinyiyong/following{/other_user}","gists_url":"https://api.github.com/users/jiyinyiyong/gists{/gist_id}","starred_url":"https://api.github.com/users/jiyinyiyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiyinyiyong/subscriptions","organizations_url":"https://api.github.com/users/jiyinyiyong/orgs","repos_url":"https://api.github.com/users/jiyinyiyong/repos","events_url":"https://api.github.com/users/jiyinyiyong/events{/privacy}","received_events_url":"https://api.github.com/users/jiyinyiyong/received_events","type":"User","site_admin":false},"repo":{"id":20810794,"name":"swift-is-like-go","full_name":"jiyinyiyong/swift-is-like-go","owner":{"login":"jiyinyiyong","id":449224,"avatar_url":"https://avatars.githubusercontent.com/u/449224?v=3","gravatar_id":"","url":"https://api.github.com/users/jiyinyiyong","html_url":"https://github.com/jiyinyiyong","followers_url":"https://api.github.com/users/jiyinyiyong/followers","following_url":"https://api.github.com/users/jiyinyiyong/following{/other_user}","gists_url":"https://api.github.com/users/jiyinyiyong/gists{/gist_id}","starred_url":"https://api.github.com/users/jiyinyiyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiyinyiyong/subscriptions","organizations_url":"https://api.github.com/users/jiyinyiyong/orgs","repos_url":"https://api.github.com/users/jiyinyiyong/repos","events_url":"https://api.github.com/users/jiyinyiyong/events{/privacy}","received_events_url":"https://api.github.com/users/jiyinyiyong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jiyinyiyong/swift-is-like-go","description":"Comparing Swift synax with Go's","fork":false,"url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go","forks_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/forks","keys_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/teams","hooks_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/hooks","issue_events_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/issues/events{/number}","events_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/events","assignees_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/assignees{/user}","branches_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/branches{/branch}","tags_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/tags","blobs_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/statuses/{sha}","languages_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/languages","stargazers_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/stargazers","contributors_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/contributors","subscribers_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/subscribers","subscription_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/subscription","commits_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/contents/{+path}","compare_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/merges","archive_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/downloads","issues_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/issues{/number}","pulls_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls{/number}","milestones_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/milestones{/number}","notifications_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/labels{/name}","releases_url":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/releases{/id}","created_at":"2014-06-13T16:40:56Z","updated_at":"2015-08-27T20:45:33Z","pushed_at":"2015-08-28T07:17:32Z","git_url":"git://github.com/jiyinyiyong/swift-is-like-go.git","ssh_url":"git@github.com:jiyinyiyong/swift-is-like-go.git","clone_url":"https://github.com/jiyinyiyong/swift-is-like-go.git","svn_url":"https://github.com/jiyinyiyong/swift-is-like-go","homepage":"http://repo.tiye.me/swift-is-like-go/index.html","size":217,"stargazers_count":24,"watchers_count":24,"language":"Cirru","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":0,"forks":8,"open_issues":0,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/4"},"html":{"href":"https://github.com/jiyinyiyong/swift-is-like-go/pull/4"},"issue":{"href":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/issues/4"},"comments":{"href":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jiyinyiyong/swift-is-like-go/statuses/2ad56cbb826145467040de997fa56265a4004ee4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jiyinyiyong","id":449224,"avatar_url":"https://avatars.githubusercontent.com/u/449224?v=3","gravatar_id":"","url":"https://api.github.com/users/jiyinyiyong","html_url":"https://github.com/jiyinyiyong","followers_url":"https://api.github.com/users/jiyinyiyong/followers","following_url":"https://api.github.com/users/jiyinyiyong/following{/other_user}","gists_url":"https://api.github.com/users/jiyinyiyong/gists{/gist_id}","starred_url":"https://api.github.com/users/jiyinyiyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiyinyiyong/subscriptions","organizations_url":"https://api.github.com/users/jiyinyiyong/orgs","repos_url":"https://api.github.com/users/jiyinyiyong/repos","events_url":"https://api.github.com/users/jiyinyiyong/events{/privacy}","received_events_url":"https://api.github.com/users/jiyinyiyong/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}