{"action":"created","comment":{"url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/comments/55156769","id":55156769,"diff_hunk":"@@ -5,20 +5,20 @@ instructor_notes: Feel free to re-organize the headings (or add/remove headings)\n \n # What is a String?\n \n-Replace me with your response...\n+A string is a sequence of characters.\n \n # What are some examples of information that would be Strings as opposed to some other data type?\n \n-Replace me with your response...\n+An example of a string is \"One plus one equals two\"\n \n # What is one way, using Ruby, to retrieve the 6th character in a String like `\"Ada Lovelace\"`? How about the 8th character? What happens if you try to retrieve the value of the _99th_ character (Or any character that doesn't exist)?\n \n-Replace me with your response...\n+\"Ada Lovelace\".index('6') \"Ada Lovelace\".index('8') If you try to retrieve a character that does not exist, it should return nil.","path":"lib/strings.md","position":15,"original_position":15,"commit_id":"6ca6225e30dcdb671cc00614a7d313a93bfdebc2","original_commit_id":"6ca6225e30dcdb671cc00614a7d313a93bfdebc2","user":{"login":"andrewek","id":714518,"avatar_url":"https://avatars.githubusercontent.com/u/714518?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewek","html_url":"https://github.com/andrewek","followers_url":"https://api.github.com/users/andrewek/followers","following_url":"https://api.github.com/users/andrewek/following{/other_user}","gists_url":"https://api.github.com/users/andrewek/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewek/subscriptions","organizations_url":"https://api.github.com/users/andrewek/orgs","repos_url":"https://api.github.com/users/andrewek/repos","events_url":"https://api.github.com/users/andrewek/events{/privacy}","received_events_url":"https://api.github.com/users/andrewek/received_events","type":"User","site_admin":false},"body":"Remember that the first character in a string is at index 0 (which we can access like so: `str[0]` (where `str = \"Ada Lovelace\"). So if you wanted to get the 6th character, You'd actually need to do something like `\"Ada Lovelace\"[ 5 ]` (since the first character is at index 0, we get the _n_th character at index `n - 1`.","created_at":"2016-03-07T02:36:40Z","updated_at":"2016-03-07T02:36:40Z","html_url":"https://github.com/star-city-code-school/ruby-prompt__strings/pull/11#discussion_r55156769","pull_request_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/comments/55156769"},"html":{"href":"https://github.com/star-city-code-school/ruby-prompt__strings/pull/11#discussion_r55156769"},"pull_request":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11","id":61661530,"html_url":"https://github.com/star-city-code-school/ruby-prompt__strings/pull/11","diff_url":"https://github.com/star-city-code-school/ruby-prompt__strings/pull/11.diff","patch_url":"https://github.com/star-city-code-school/ruby-prompt__strings/pull/11.patch","issue_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/issues/11","number":11,"state":"open","locked":false,"title":"Done","user":{"login":"jrmypttrsn","id":16291625,"avatar_url":"https://avatars.githubusercontent.com/u/16291625?v=3","gravatar_id":"","url":"https://api.github.com/users/jrmypttrsn","html_url":"https://github.com/jrmypttrsn","followers_url":"https://api.github.com/users/jrmypttrsn/followers","following_url":"https://api.github.com/users/jrmypttrsn/following{/other_user}","gists_url":"https://api.github.com/users/jrmypttrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/jrmypttrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrmypttrsn/subscriptions","organizations_url":"https://api.github.com/users/jrmypttrsn/orgs","repos_url":"https://api.github.com/users/jrmypttrsn/repos","events_url":"https://api.github.com/users/jrmypttrsn/events{/privacy}","received_events_url":"https://api.github.com/users/jrmypttrsn/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-04T03:11:07Z","updated_at":"2016-03-07T02:36:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3287c7ea0803cbc6721df1c19683560e04cafe13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11/commits","review_comments_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11/comments","review_comment_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/comments{/number}","comments_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/issues/11/comments","statuses_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/statuses/6ca6225e30dcdb671cc00614a7d313a93bfdebc2","head":{"label":"jrmypttrsn:master","ref":"master","sha":"6ca6225e30dcdb671cc00614a7d313a93bfdebc2","user":{"login":"jrmypttrsn","id":16291625,"avatar_url":"https://avatars.githubusercontent.com/u/16291625?v=3","gravatar_id":"","url":"https://api.github.com/users/jrmypttrsn","html_url":"https://github.com/jrmypttrsn","followers_url":"https://api.github.com/users/jrmypttrsn/followers","following_url":"https://api.github.com/users/jrmypttrsn/following{/other_user}","gists_url":"https://api.github.com/users/jrmypttrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/jrmypttrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrmypttrsn/subscriptions","organizations_url":"https://api.github.com/users/jrmypttrsn/orgs","repos_url":"https://api.github.com/users/jrmypttrsn/repos","events_url":"https://api.github.com/users/jrmypttrsn/events{/privacy}","received_events_url":"https://api.github.com/users/jrmypttrsn/received_events","type":"User","site_admin":false},"repo":{"id":52230018,"name":"ruby-prompt__strings","full_name":"jrmypttrsn/ruby-prompt__strings","owner":{"login":"jrmypttrsn","id":16291625,"avatar_url":"https://avatars.githubusercontent.com/u/16291625?v=3","gravatar_id":"","url":"https://api.github.com/users/jrmypttrsn","html_url":"https://github.com/jrmypttrsn","followers_url":"https://api.github.com/users/jrmypttrsn/followers","following_url":"https://api.github.com/users/jrmypttrsn/following{/other_user}","gists_url":"https://api.github.com/users/jrmypttrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/jrmypttrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrmypttrsn/subscriptions","organizations_url":"https://api.github.com/users/jrmypttrsn/orgs","repos_url":"https://api.github.com/users/jrmypttrsn/repos","events_url":"https://api.github.com/users/jrmypttrsn/events{/privacy}","received_events_url":"https://api.github.com/users/jrmypttrsn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrmypttrsn/ruby-prompt__strings","description":"","fork":true,"url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings","forks_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/forks","keys_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/teams","hooks_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/hooks","issue_events_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/issues/events{/number}","events_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/events","assignees_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/assignees{/user}","branches_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/branches{/branch}","tags_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/tags","blobs_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/statuses/{sha}","languages_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/languages","stargazers_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/stargazers","contributors_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/contributors","subscribers_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/subscribers","subscription_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/subscription","commits_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/contents/{+path}","compare_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/merges","archive_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/downloads","issues_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/issues{/number}","pulls_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/pulls{/number}","milestones_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/milestones{/number}","notifications_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/labels{/name}","releases_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/releases{/id}","deployments_url":"https://api.github.com/repos/jrmypttrsn/ruby-prompt__strings/deployments","created_at":"2016-02-21T21:53:38Z","updated_at":"2016-02-17T02:48:09Z","pushed_at":"2016-02-21T22:44:38Z","git_url":"git://github.com/jrmypttrsn/ruby-prompt__strings.git","ssh_url":"git@github.com:jrmypttrsn/ruby-prompt__strings.git","clone_url":"https://github.com/jrmypttrsn/ruby-prompt__strings.git","svn_url":"https://github.com/jrmypttrsn/ruby-prompt__strings","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"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":"star-city-code-school:master","ref":"master","sha":"049ac4b773917ea37d8fa23b23d07df1242c6475","user":{"login":"star-city-code-school","id":17185285,"avatar_url":"https://avatars.githubusercontent.com/u/17185285?v=3","gravatar_id":"","url":"https://api.github.com/users/star-city-code-school","html_url":"https://github.com/star-city-code-school","followers_url":"https://api.github.com/users/star-city-code-school/followers","following_url":"https://api.github.com/users/star-city-code-school/following{/other_user}","gists_url":"https://api.github.com/users/star-city-code-school/gists{/gist_id}","starred_url":"https://api.github.com/users/star-city-code-school/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/star-city-code-school/subscriptions","organizations_url":"https://api.github.com/users/star-city-code-school/orgs","repos_url":"https://api.github.com/users/star-city-code-school/repos","events_url":"https://api.github.com/users/star-city-code-school/events{/privacy}","received_events_url":"https://api.github.com/users/star-city-code-school/received_events","type":"Organization","site_admin":false},"repo":{"id":51888875,"name":"ruby-prompt__strings","full_name":"star-city-code-school/ruby-prompt__strings","owner":{"login":"star-city-code-school","id":17185285,"avatar_url":"https://avatars.githubusercontent.com/u/17185285?v=3","gravatar_id":"","url":"https://api.github.com/users/star-city-code-school","html_url":"https://github.com/star-city-code-school","followers_url":"https://api.github.com/users/star-city-code-school/followers","following_url":"https://api.github.com/users/star-city-code-school/following{/other_user}","gists_url":"https://api.github.com/users/star-city-code-school/gists{/gist_id}","starred_url":"https://api.github.com/users/star-city-code-school/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/star-city-code-school/subscriptions","organizations_url":"https://api.github.com/users/star-city-code-school/orgs","repos_url":"https://api.github.com/users/star-city-code-school/repos","events_url":"https://api.github.com/users/star-city-code-school/events{/privacy}","received_events_url":"https://api.github.com/users/star-city-code-school/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/star-city-code-school/ruby-prompt__strings","description":"","fork":false,"url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings","forks_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/forks","keys_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/keys{/key_id}","collaborators_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/teams","hooks_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/hooks","issue_events_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/issues/events{/number}","events_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/events","assignees_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/assignees{/user}","branches_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/branches{/branch}","tags_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/tags","blobs_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/git/refs{/sha}","trees_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/git/trees{/sha}","statuses_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/statuses/{sha}","languages_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/languages","stargazers_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/stargazers","contributors_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/contributors","subscribers_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/subscribers","subscription_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/subscription","commits_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/commits{/sha}","git_commits_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/git/commits{/sha}","comments_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/comments{/number}","issue_comment_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/issues/comments{/number}","contents_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/contents/{+path}","compare_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/compare/{base}...{head}","merges_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/merges","archive_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/downloads","issues_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/issues{/number}","pulls_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls{/number}","milestones_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/milestones{/number}","notifications_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/labels{/name}","releases_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/releases{/id}","deployments_url":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/deployments","created_at":"2016-02-17T02:48:09Z","updated_at":"2016-02-17T02:48:09Z","pushed_at":"2016-03-04T03:11:07Z","git_url":"git://github.com/star-city-code-school/ruby-prompt__strings.git","ssh_url":"git@github.com:star-city-code-school/ruby-prompt__strings.git","clone_url":"https://github.com/star-city-code-school/ruby-prompt__strings.git","svn_url":"https://github.com/star-city-code-school/ruby-prompt__strings","homepage":null,"size":9,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11"},"html":{"href":"https://github.com/star-city-code-school/ruby-prompt__strings/pull/11"},"issue":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/issues/11"},"comments":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/star-city-code-school/ruby-prompt__strings/statuses/6ca6225e30dcdb671cc00614a7d313a93bfdebc2"}}}}