{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/comments/90131482","pull_request_review_id":10655861,"id":90131482,"diff_hunk":"@@ -122,8 +167,23 @@ impl IpAddr {\n     }\n \n     /// Returns true if this address is in a range designated for documentation ([IPv4], [IPv6]).\n+    ///\n     /// [IPv4]: ../../std/net/struct.Ipv4Addr.html#method.is_documentation\n     /// [IPv6]: ../../std/net/struct.Ipv6Addr.html#method.is_documentation\n+    ///\n+    /// # Examples\n+    ///\n+    /// ```\n+    /// #![feature(ip)]\n+    ///\n+    /// use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};\n+    ///\n+    /// fn main() {","path":"src/libstd/net/ip.rs","position":53,"original_position":96,"commit_id":"2cb1f9198cf234f17fbe440817769bf28e31cce8","original_commit_id":"2cb1f9198cf234f17fbe440817769bf28e31cce8","user":{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false},"body":"You should be able to omit the `fn main() {` even if you're using `#![feature(...)]`. An example:\r\n\r\nhttps://github.com/rust-lang/rust/blob/b30022a1d32ebbd41f6623ab6fe7c62d489548e1/src/libcore/sync/atomic.rs#L205-L213","created_at":"2016-11-29T22:38:59Z","updated_at":"2016-11-29T22:38:59Z","html_url":"https://github.com/rust-lang/rust/pull/38077#discussion_r90131482","pull_request_url":"https://api.github.com/repos/rust-lang/rust/pulls/38077","_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments/90131482"},"html":{"href":"https://github.com/rust-lang/rust/pull/38077#discussion_r90131482"},"pull_request":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/38077"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/38077","id":95789448,"html_url":"https://github.com/rust-lang/rust/pull/38077","diff_url":"https://github.com/rust-lang/rust/pull/38077.diff","patch_url":"https://github.com/rust-lang/rust/pull/38077.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/38077","number":38077,"state":"open","locked":false,"title":"Add missing examples for IpAddr enum","user":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars.githubusercontent.com/u/3050060?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false},"body":"r? @frewsxcv ","created_at":"2016-11-29T22:29:02Z","updated_at":"2016-11-29T22:38:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57b00c5678f21f829cf6aec47c11243042e1fc73","assignee":{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false},"assignees":[{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rust/pulls/38077/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/38077/comments","review_comment_url":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/38077/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/2cb1f9198cf234f17fbe440817769bf28e31cce8","head":{"label":"GuillaumeGomez:ipaddr_doc","ref":"ipaddr_doc","sha":"2cb1f9198cf234f17fbe440817769bf28e31cce8","user":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars.githubusercontent.com/u/3050060?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false},"repo":{"id":32751288,"name":"rust","full_name":"GuillaumeGomez/rust","owner":{"login":"GuillaumeGomez","id":3050060,"avatar_url":"https://avatars.githubusercontent.com/u/3050060?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeGomez","html_url":"https://github.com/GuillaumeGomez","followers_url":"https://api.github.com/users/GuillaumeGomez/followers","following_url":"https://api.github.com/users/GuillaumeGomez/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeGomez/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeGomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeGomez/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeGomez/orgs","repos_url":"https://api.github.com/users/GuillaumeGomez/repos","events_url":"https://api.github.com/users/GuillaumeGomez/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeGomez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GuillaumeGomez/rust","description":"a safe, concurrent, practical language","fork":true,"url":"https://api.github.com/repos/GuillaumeGomez/rust","forks_url":"https://api.github.com/repos/GuillaumeGomez/rust/forks","keys_url":"https://api.github.com/repos/GuillaumeGomez/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GuillaumeGomez/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GuillaumeGomez/rust/teams","hooks_url":"https://api.github.com/repos/GuillaumeGomez/rust/hooks","issue_events_url":"https://api.github.com/repos/GuillaumeGomez/rust/issues/events{/number}","events_url":"https://api.github.com/repos/GuillaumeGomez/rust/events","assignees_url":"https://api.github.com/repos/GuillaumeGomez/rust/assignees{/user}","branches_url":"https://api.github.com/repos/GuillaumeGomez/rust/branches{/branch}","tags_url":"https://api.github.com/repos/GuillaumeGomez/rust/tags","blobs_url":"https://api.github.com/repos/GuillaumeGomez/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GuillaumeGomez/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GuillaumeGomez/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/GuillaumeGomez/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GuillaumeGomez/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/GuillaumeGomez/rust/languages","stargazers_url":"https://api.github.com/repos/GuillaumeGomez/rust/stargazers","contributors_url":"https://api.github.com/repos/GuillaumeGomez/rust/contributors","subscribers_url":"https://api.github.com/repos/GuillaumeGomez/rust/subscribers","subscription_url":"https://api.github.com/repos/GuillaumeGomez/rust/subscription","commits_url":"https://api.github.com/repos/GuillaumeGomez/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/GuillaumeGomez/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/GuillaumeGomez/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/GuillaumeGomez/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/GuillaumeGomez/rust/contents/{+path}","compare_url":"https://api.github.com/repos/GuillaumeGomez/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GuillaumeGomez/rust/merges","archive_url":"https://api.github.com/repos/GuillaumeGomez/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GuillaumeGomez/rust/downloads","issues_url":"https://api.github.com/repos/GuillaumeGomez/rust/issues{/number}","pulls_url":"https://api.github.com/repos/GuillaumeGomez/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/GuillaumeGomez/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/GuillaumeGomez/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GuillaumeGomez/rust/labels{/name}","releases_url":"https://api.github.com/repos/GuillaumeGomez/rust/releases{/id}","deployments_url":"https://api.github.com/repos/GuillaumeGomez/rust/deployments","created_at":"2015-03-23T18:35:10Z","updated_at":"2016-01-14T21:53:52Z","pushed_at":"2016-11-29T22:28:25Z","git_url":"git://github.com/GuillaumeGomez/rust.git","ssh_url":"git@github.com:GuillaumeGomez/rust.git","clone_url":"https://github.com/GuillaumeGomez/rust.git","svn_url":"https://github.com/GuillaumeGomez/rust","homepage":"http://www.rust-lang.org","size":314549,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"b30022a1d32ebbd41f6623ab6fe7c62d489548e1","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":724712,"name":"rust","full_name":"rust-lang/rust","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/rust","description":"A safe, concurrent, practical language.","fork":false,"url":"https://api.github.com/repos/rust-lang/rust","forks_url":"https://api.github.com/repos/rust-lang/rust/forks","keys_url":"https://api.github.com/repos/rust-lang/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/rust/teams","hooks_url":"https://api.github.com/repos/rust-lang/rust/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/rust/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/rust/events","assignees_url":"https://api.github.com/repos/rust-lang/rust/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/rust/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/rust/tags","blobs_url":"https://api.github.com/repos/rust-lang/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/rust/languages","stargazers_url":"https://api.github.com/repos/rust-lang/rust/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/rust/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/rust/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/rust/subscription","commits_url":"https://api.github.com/repos/rust-lang/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/rust/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/rust/merges","archive_url":"https://api.github.com/repos/rust-lang/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/rust/downloads","issues_url":"https://api.github.com/repos/rust-lang/rust/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/rust/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/rust/releases{/id}","deployments_url":"https://api.github.com/repos/rust-lang/rust/deployments","created_at":"2010-06-16T20:39:03Z","updated_at":"2016-11-29T22:37:46Z","pushed_at":"2016-11-29T22:29:02Z","git_url":"git://github.com/rust-lang/rust.git","ssh_url":"git@github.com:rust-lang/rust.git","clone_url":"https://github.com/rust-lang/rust.git","svn_url":"https://github.com/rust-lang/rust","homepage":"https://www.rust-lang.org","size":530636,"stargazers_count":19154,"watchers_count":19154,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3681,"mirror_url":null,"open_issues_count":2926,"forks":3681,"open_issues":2926,"watchers":19154,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/38077"},"html":{"href":"https://github.com/rust-lang/rust/pull/38077"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/38077"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/38077/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/38077/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/38077/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/2cb1f9198cf234f17fbe440817769bf28e31cce8"}}}}
{"actor":{"display_login":"frewsxcv"}}