{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/24119","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/24119/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/24119/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/24119/events","html_url":"https://github.com/rust-lang/rust/issues/24119","id":66665885,"number":24119,"title":"RangeFrom<u8> stops at 254","user":{"login":"phaylon","id":41822,"avatar_url":"https://avatars.githubusercontent.com/u/41822?v=3","gravatar_id":"","url":"https://api.github.com/users/phaylon","html_url":"https://github.com/phaylon","followers_url":"https://api.github.com/users/phaylon/followers","following_url":"https://api.github.com/users/phaylon/following{/other_user}","gists_url":"https://api.github.com/users/phaylon/gists{/gist_id}","starred_url":"https://api.github.com/users/phaylon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phaylon/subscriptions","organizations_url":"https://api.github.com/users/phaylon/orgs","repos_url":"https://api.github.com/users/phaylon/repos","events_url":"https://api.github.com/users/phaylon/events{/privacy}","received_events_url":"https://api.github.com/users/phaylon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-06T17:55:55Z","updated_at":"2015-04-06T22:47:56Z","closed_at":null,"body":"I tried printing all valid `u8`s by doing\r\n\r\n    for n in 0u8.. {\r\n        println!(\"{}\", n);\r\n    }\r\n\r\nand was surprised to find it only printed up to 254.\r\n\r\nI'm unsure if this is supposed to be this way (`range_inclusive` can be used). If so, I'd propose adding this to the Iterators/Ranges section of the book."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/90269507","html_url":"https://github.com/rust-lang/rust/issues/24119#issuecomment-90269507","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/24119","id":90269507,"user":{"login":"Gankro","id":1136864,"avatar_url":"https://avatars.githubusercontent.com/u/1136864?v=3","gravatar_id":"","url":"https://api.github.com/users/Gankro","html_url":"https://github.com/Gankro","followers_url":"https://api.github.com/users/Gankro/followers","following_url":"https://api.github.com/users/Gankro/following{/other_user}","gists_url":"https://api.github.com/users/Gankro/gists{/gist_id}","starred_url":"https://api.github.com/users/Gankro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gankro/subscriptions","organizations_url":"https://api.github.com/users/Gankro/orgs","repos_url":"https://api.github.com/users/Gankro/repos","events_url":"https://api.github.com/users/Gankro/events{/privacy}","received_events_url":"https://api.github.com/users/Gankro/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T22:47:56Z","updated_at":"2015-04-06T22:47:56Z","body":"Exclusive behaviour is also a leaner implementation. For inclusive behaviour you need some kind of flag for \"now yield the inclusive element\". This issue is an exact example of why: How do you statefully write an iterator from `0` to `u8::MAX`, inclusive?"}}