payload: {"action":"created","comment":{"url":"https://api.github.com/repos/rust-random/book/pulls/comments/296479800","pull_request_review_id":253131092,"id":296479800,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NjQ3OTgwMA==","diff_hunk":"@@ -0,0 +1,68 @@\n+# Getting Started\n+\n+Lets kick things off with an example ([playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=4cad6600b21578cfa22009c281c780fe)):\n+\n+```rust,editable\n+# extern crate rand;\n+\n+// import commonly used items from the prelude:\n+use rand::prelude::*;\n+\n+fn main() {\n+    // We can use random() immediately. It can produce values of many common types:\n+    let x: u8 = random();\n+    println!(\"{}\", x);\n+\n+    if random() { // generates a boolean\n+        println!(\"Heads!\");\n+    }\n+\n+    // If we want to be a bit more explicit (and a little more efficient) we can\n+    // make a handle to the thread-local generator:\n+    let mut rng = thread_rng();\n+    if rng.gen() { // random bool\n+        let x: f64 = rng.gen(); // random number in range [0, 1)\n+        let y = rng.gen_range(-10.0, 10.0);\n+        println!(\"x is: {}\", x);\n+        println!(\"y is: {}\", y);\n+        println!(\"Number from 0 to 9: {}\", rng.gen_range(0, 10));\n+    }\n+    \n+    // We can also interact with iterators and slices:\n+    let arrows_iter = \"➡⬈⬆⬉⬅⬋⬇⬊\".chars();\n+    println!(\"Lets go in this direction: {}\", arrows_iter.choose(&mut rng).unwrap());\n+    let mut nums = [1, 2, 3, 4, 5];\n+    nums.shuffle(&mut rng);\n+    println!(\"I shuffled my {:?}\", nums);\n+}\n+```\n+\n+The first thing you may have noticed is that we imported everything from the\n+[prelude]. This is\n+the lazy way to `use` rand, and like the","path":"src/guide-start.md","position":42,"original_position":42,"commit_id":"f22669a1c5d04db0238e0927f6b56cf42b2917a6","original_commit_id":"f22669a1c5d04db0238e0927f6b56cf42b2917a6","user":{"login":"vks","id":33460,"node_id":"MDQ6VXNlcjMzNDYw","avatar_url":"https://avatars2.githubusercontent.com/u/33460?v=4","gravatar_id":"","url":"https://api.github.com/users/vks","html_url":"https://github.com/vks","followers_url":"https://api.github.com/users/vks/followers","following_url":"https://api.github.com/users/vks/following{/other_user}","gists_url":"https://api.github.com/users/vks/gists{/gist_id}","starred_url":"https://api.github.com/users/vks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vks/subscriptions","organizations_url":"https://api.github.com/users/vks/orgs","repos_url":"https://api.github.com/users/vks/repos","events_url":"https://api.github.com/users/vks/events{/privacy}","received_events_url":"https://api.github.com/users/vks/received_events","type":"User","site_admin":false},"body":"Those two lines can be joined.","created_at":"2019-06-23T12:49:36Z","updated_at":"2019-06-23T12:49:37Z","html_url":"https://github.com/rust-random/book/pull/10#discussion_r296479800","pull_request_url":"https://api.github.com/repos/rust-random/book/pulls/10","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rust-random/book/pulls/comments/296479800"},"html":{"href":"https://github.com/rust-random/book/pull/10#discussion_r296479800"},"pull_request":{"href":"https://api.github.com/repos/rust-random/book/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/rust-random/book/pulls/10","id":290884546,"node_id":"MDExOlB1bGxSZXF1ZXN0MjkwODg0NTQ2","html_url":"https://github.com/rust-random/book/pull/10","diff_url":"https://github.com/rust-random/book/pull/10.diff","patch_url":"https://github.com/rust-random/book/pull/10.patch","issue_url":"https://api.github.com/repos/rust-random/book/issues/10","number":10,"state":"open","locked":false,"title":"Book: rewrite intro, overview, portability; add guide-start","user":{"login":"dhardy","id":134893,"node_id":"MDQ6VXNlcjEzNDg5Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/134893?v=4","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"body":"@vks would you be happy to review?","created_at":"2019-06-23T12:08:46Z","updated_at":"2019-06-23T12:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cc22913ec460ac64997a3b15fea2c41746ce87f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rust-random/book/pulls/10/commits","review_comments_url":"https://api.github.com/repos/rust-random/book/pulls/10/comments","review_comment_url":"https://api.github.com/repos/rust-random/book/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-random/book/issues/10/comments","statuses_url":"https://api.github.com/repos/rust-random/book/statuses/f22669a1c5d04db0238e0927f6b56cf42b2917a6","head":{"label":"dhardy:overview","ref":"overview","sha":"f22669a1c5d04db0238e0927f6b56cf42b2917a6","user":{"login":"dhardy","id":134893,"node_id":"MDQ6VXNlcjEzNDg5Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/134893?v=4","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"repo":{"id":156759574,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY3NTk1NzQ=","name":"book-1","full_name":"dhardy/book-1","private":false,"owner":{"login":"dhardy","id":134893,"node_id":"MDQ6VXNlcjEzNDg5Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/134893?v=4","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dhardy/book-1","description":"The Rust Rand Book","fork":true,"url":"https://api.github.com/repos/dhardy/book-1","forks_url":"https://api.github.com/repos/dhardy/book-1/forks","keys_url":"https://api.github.com/repos/dhardy/book-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhardy/book-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhardy/book-1/teams","hooks_url":"https://api.github.com/repos/dhardy/book-1/hooks","issue_events_url":"https://api.github.com/repos/dhardy/book-1/issues/events{/number}","events_url":"https://api.github.com/repos/dhardy/book-1/events","assignees_url":"https://api.github.com/repos/dhardy/book-1/assignees{/user}","branches_url":"https://api.github.com/repos/dhardy/book-1/branches{/branch}","tags_url":"https://api.github.com/repos/dhardy/book-1/tags","blobs_url":"https://api.github.com/repos/dhardy/book-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhardy/book-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhardy/book-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhardy/book-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhardy/book-1/statuses/{sha}","languages_url":"https://api.github.com/repos/dhardy/book-1/languages","stargazers_url":"https://api.github.com/repos/dhardy/book-1/stargazers","contributors_url":"https://api.github.com/repos/dhardy/book-1/contributors","subscribers_url":"https://api.github.com/repos/dhardy/book-1/subscribers","subscription_url":"https://api.github.com/repos/dhardy/book-1/subscription","commits_url":"https://api.github.com/repos/dhardy/book-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhardy/book-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhardy/book-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhardy/book-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhardy/book-1/contents/{+path}","compare_url":"https://api.github.com/repos/dhardy/book-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhardy/book-1/merges","archive_url":"https://api.github.com/repos/dhardy/book-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhardy/book-1/downloads","issues_url":"https://api.github.com/repos/dhardy/book-1/issues{/number}","pulls_url":"https://api.github.com/repos/dhardy/book-1/pulls{/number}","milestones_url":"https://api.github.com/repos/dhardy/book-1/milestones{/number}","notifications_url":"https://api.github.com/repos/dhardy/book-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhardy/book-1/labels{/name}","releases_url":"https://api.github.com/repos/dhardy/book-1/releases{/id}","deployments_url":"https://api.github.com/repos/dhardy/book-1/deployments","created_at":"2018-11-08T19:40:54Z","updated_at":"2019-06-23T07:50:35Z","pushed_at":"2019-06-23T12:08:30Z","git_url":"git://github.com/dhardy/book-1.git","ssh_url":"git@github.com:dhardy/book-1.git","clone_url":"https://github.com/dhardy/book-1.git","svn_url":"https://github.com/dhardy/book-1","homepage":null,"size":624,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-random:master","ref":"master","sha":"c0dc9e54ffe6f41709c809702a95e4550b1130e5","user":{"login":"rust-random","id":42028081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDI4MDgx","avatar_url":"https://avatars0.githubusercontent.com/u/42028081?v=4","gravatar_id":"","url":"https://api.github.com/users/rust-random","html_url":"https://github.com/rust-random","followers_url":"https://api.github.com/users/rust-random/followers","following_url":"https://api.github.com/users/rust-random/following{/other_user}","gists_url":"https://api.github.com/users/rust-random/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-random/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-random/subscriptions","organizations_url":"https://api.github.com/users/rust-random/orgs","repos_url":"https://api.github.com/users/rust-random/repos","events_url":"https://api.github.com/users/rust-random/events{/privacy}","received_events_url":"https://api.github.com/users/rust-random/received_events","type":"Organization","site_admin":false},"repo":{"id":154126038,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxMjYwMzg=","name":"book","full_name":"rust-random/book","private":false,"owner":{"login":"rust-random","id":42028081,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyMDI4MDgx","avatar_url":"https://avatars0.githubusercontent.com/u/42028081?v=4","gravatar_id":"","url":"https://api.github.com/users/rust-random","html_url":"https://github.com/rust-random","followers_url":"https://api.github.com/users/rust-random/followers","following_url":"https://api.github.com/users/rust-random/following{/other_user}","gists_url":"https://api.github.com/users/rust-random/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-random/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-random/subscriptions","organizations_url":"https://api.github.com/users/rust-random/orgs","repos_url":"https://api.github.com/users/rust-random/repos","events_url":"https://api.github.com/users/rust-random/events{/privacy}","received_events_url":"https://api.github.com/users/rust-random/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rust-random/book","description":"The Rust Rand Book","fork":false,"url":"https://api.github.com/repos/rust-random/book","forks_url":"https://api.github.com/repos/rust-random/book/forks","keys_url":"https://api.github.com/repos/rust-random/book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-random/book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-random/book/teams","hooks_url":"https://api.github.com/repos/rust-random/book/hooks","issue_events_url":"https://api.github.com/repos/rust-random/book/issues/events{/number}","events_url":"https://api.github.com/repos/rust-random/book/events","assignees_url":"https://api.github.com/repos/rust-random/book/assignees{/user}","branches_url":"https://api.github.com/repos/rust-random/book/branches{/branch}","tags_url":"https://api.github.com/repos/rust-random/book/tags","blobs_url":"https://api.github.com/repos/rust-random/book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-random/book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-random/book/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-random/book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-random/book/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-random/book/languages","stargazers_url":"https://api.github.com/repos/rust-random/book/stargazers","contributors_url":"https://api.github.com/repos/rust-random/book/contributors","subscribers_url":"https://api.github.com/repos/rust-random/book/subscribers","subscription_url":"https://api.github.com/repos/rust-random/book/subscription","commits_url":"https://api.github.com/repos/rust-random/book/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-random/book/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-random/book/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-random/book/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-random/book/contents/{+path}","compare_url":"https://api.github.com/repos/rust-random/book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-random/book/merges","archive_url":"https://api.github.com/repos/rust-random/book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-random/book/downloads","issues_url":"https://api.github.com/repos/rust-random/book/issues{/number}","pulls_url":"https://api.github.com/repos/rust-random/book/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-random/book/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-random/book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-random/book/labels{/name}","releases_url":"https://api.github.com/repos/rust-random/book/releases{/id}","deployments_url":"https://api.github.com/repos/rust-random/book/deployments","created_at":"2018-10-22T10:37:17Z","updated_at":"2019-05-23T09:40:51Z","pushed_at":"2019-06-23T12:08:47Z","git_url":"git://github.com/rust-random/book.git","ssh_url":"git@github.com:rust-random/book.git","clone_url":"https://github.com/rust-random/book.git","svn_url":"https://github.com/rust-random/book","homepage":null,"size":769,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":3,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-random/book/pulls/10"},"html":{"href":"https://github.com/rust-random/book/pull/10"},"issue":{"href":"https://api.github.com/repos/rust-random/book/issues/10"},"comments":{"href":"https://api.github.com/repos/rust-random/book/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-random/book/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-random/book/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-random/book/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/rust-random/book/statuses/f22669a1c5d04db0238e0927f6b56cf42b2917a6"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"vks"}}