{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/31744","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/31744/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/31744/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/31744/events","html_url":"https://github.com/rust-lang/rust/issues/31744","id":134473147,"number":31744,"title":"String docs are misleading.","user":{"login":"CamJN","id":6243207,"avatar_url":"https://avatars.githubusercontent.com/u/6243207?v=3","gravatar_id":"","url":"https://api.github.com/users/CamJN","html_url":"https://github.com/CamJN","followers_url":"https://api.github.com/users/CamJN/followers","following_url":"https://api.github.com/users/CamJN/following{/other_user}","gists_url":"https://api.github.com/users/CamJN/gists{/gist_id}","starred_url":"https://api.github.com/users/CamJN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CamJN/subscriptions","organizations_url":"https://api.github.com/users/CamJN/orgs","repos_url":"https://api.github.com/users/CamJN/repos","events_url":"https://api.github.com/users/CamJN/events{/privacy}","received_events_url":"https://api.github.com/users/CamJN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-18T03:40:44Z","updated_at":"2016-02-18T15:13:31Z","closed_at":"2016-02-18T15:13:31Z","body":"Ping @steveklabnik \r\n\r\nhttps://doc.rust-lang.org/std/string/struct.String.html#method.to_uppercase\r\nhttps://doc.rust-lang.org/std/string/struct.String.html#method.to_lowercase\r\n\r\nThese methods are on str not String, which is not hard to see from the examples but only if you read them, and notice that those aren't strings. Probably shouldn't be in the String docs, or at least update the example to be a string which is then deref-coerced to a &str.\r\n\r\nI double checked this too just in case, if you try and use then on a real string you get this error: ```no associated item named `to_uppercase` found for type `collections::string::String` in the current scope```"}}