-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change 1..n + 1 to 1..=n #1467
Merged
Merged
Change 1..n + 1 to 1..=n #1467
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @marioidival (or someone else) soon. Please see the contribution instructions for more information. |
marioidival
approved these changes
Oct 4, 2021
@sharedrory thank you |
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Oct 12, 2021
Update books ## nomicon 5 commits in 2747c4bb2cbc0639b733793ddb0bf4e9daa2634e..2d66852a27c5d0ec50ae021820d1de22caa2b1bd 2021-09-19 17:33:32 +0900 to 2021-10-07 19:00:37 +0900 - Fix typo/minor grammar error in subtyping.md (rust-lang/nomicon#317) - doc: clarify `thread::scoped::JoinGuard` chapter (rust-lang/nomicon#313) - Clarify niche optimization on enums with reprs (rust-lang/nomicon#315) - Update rc decrement snipped (rust-lang/nomicon#316) - Remove useless `unsafe`, `mut` and ptr casts in example in `send-and-sync.md` (rust-lang/nomicon#308) ## reference 2 commits in 13747275bd14c2d2b453100498532f9ae5504769..b5c68b02984f74e99d1f1b332029e05f607e2660 2021-09-24 17:44:04 +0900 to 2021-10-02 08:11:35 -0700 - Use subtrait/supertrait, not sub-trait, super-trait. (rust-lang/reference#1095) - Fixed link typo in Generics.md (rust-lang/reference#1094) ## rust-by-example 3 commits in 28aca4a36962c709bce301c03114b5589381dfb8..9a60624fcad0140826c44389571dc622917cd632 2021-09-25 08:19:51 -0300 to 2021-10-04 08:13:53 -0300 - Change 1..n + 1 to 1..=n (rust-lang/rust-by-example#1467) - Close rust-lang/rust-by-example#1464 (rust-lang/rust-by-example#1465) - Fix incorrect formatted print hint; closes rust-lang/rust-by-example#1459. (rust-lang/rust-by-example#1466) ## rustc-dev-guide 11 commits in d1f03cbaa39d9164f5fe4b9b93762668142e0dad..fba15a46ca8efa97e8a955794724ac7ce27805b8 2021-09-24 12:00:29 +0900 to 2021-10-12 08:52:21 +0900 - Update some docs from 2021-10 date triage (rust-lang/rustc-dev-guide#1230) - Recommend `rustfmt --edition=2021` - Update sanitizer documentation - Mention needs-sanitizer-hwaddress directive - Address review comments - Document tracing awesomeness - Move log/tracing instructions to its own file - Update src/closure.md - Fix accidental HTML tag - Update links to `rustc_mir` in Two Phase Borrows (rust-lang/rustc-dev-guide#1226) - Update some docs from 2021-10 date triage (rust-lang/rustc-dev-guide#1224) ## edition-guide 1 commits in 2d9b1b9da706de24650fdc5c3b0182f55c82115d..7c0088ca744d293a5f4b1e2ac378e7c23d30fe55 2021-08-31 10:44:09 +0200 to 2021-10-05 13:28:05 +0200 - Clarify cargo resolver behavior in a workspace. (rust-lang/edition-guide#267) ## embedded-book 2 commits in 4c76da9ddb4650203c129fceffdea95a3466c205..270fccd339e5972d9c900e788f197e81a0bcd956 2021-09-12 12:43:03 +0000 to 2021-10-06 16:28:48 +0000 - Update section 1.4 to mention that some additional packages required (rust-embedded/book#304) - Change `-file-headers` to `--file-headers` (rust-embedded/book#303)
the8472
added a commit
to the8472/rust
that referenced
this pull request
Oct 12, 2021
Update books ## nomicon 5 commits in 2747c4bb2cbc0639b733793ddb0bf4e9daa2634e..2d66852a27c5d0ec50ae021820d1de22caa2b1bd 2021-09-19 17:33:32 +0900 to 2021-10-07 19:00:37 +0900 - Fix typo/minor grammar error in subtyping.md (rust-lang/nomicon#317) - doc: clarify `thread::scoped::JoinGuard` chapter (rust-lang/nomicon#313) - Clarify niche optimization on enums with reprs (rust-lang/nomicon#315) - Update rc decrement snipped (rust-lang/nomicon#316) - Remove useless `unsafe`, `mut` and ptr casts in example in `send-and-sync.md` (rust-lang/nomicon#308) ## reference 2 commits in 13747275bd14c2d2b453100498532f9ae5504769..b5c68b02984f74e99d1f1b332029e05f607e2660 2021-09-24 17:44:04 +0900 to 2021-10-02 08:11:35 -0700 - Use subtrait/supertrait, not sub-trait, super-trait. (rust-lang/reference#1095) - Fixed link typo in Generics.md (rust-lang/reference#1094) ## rust-by-example 3 commits in 28aca4a36962c709bce301c03114b5589381dfb8..9a60624fcad0140826c44389571dc622917cd632 2021-09-25 08:19:51 -0300 to 2021-10-04 08:13:53 -0300 - Change 1..n + 1 to 1..=n (rust-lang/rust-by-example#1467) - Close rust-lang/rust-by-example#1464 (rust-lang/rust-by-example#1465) - Fix incorrect formatted print hint; closes rust-lang/rust-by-example#1459. (rust-lang/rust-by-example#1466) ## rustc-dev-guide 11 commits in d1f03cbaa39d9164f5fe4b9b93762668142e0dad..fba15a46ca8efa97e8a955794724ac7ce27805b8 2021-09-24 12:00:29 +0900 to 2021-10-12 08:52:21 +0900 - Update some docs from 2021-10 date triage (rust-lang/rustc-dev-guide#1230) - Recommend `rustfmt --edition=2021` - Update sanitizer documentation - Mention needs-sanitizer-hwaddress directive - Address review comments - Document tracing awesomeness - Move log/tracing instructions to its own file - Update src/closure.md - Fix accidental HTML tag - Update links to `rustc_mir` in Two Phase Borrows (rust-lang/rustc-dev-guide#1226) - Update some docs from 2021-10 date triage (rust-lang/rustc-dev-guide#1224) ## edition-guide 1 commits in 2d9b1b9da706de24650fdc5c3b0182f55c82115d..7c0088ca744d293a5f4b1e2ac378e7c23d30fe55 2021-08-31 10:44:09 +0200 to 2021-10-05 13:28:05 +0200 - Clarify cargo resolver behavior in a workspace. (rust-lang/edition-guide#267) ## embedded-book 2 commits in 4c76da9ddb4650203c129fceffdea95a3466c205..270fccd339e5972d9c900e788f197e81a0bcd956 2021-09-12 12:43:03 +0000 to 2021-10-06 16:28:48 +0000 - Update section 1.4 to mention that some additional packages required (rust-embedded/book#304) - Change `-file-headers` to `--file-headers` (rust-embedded/book#303)
the8472
added a commit
to the8472/rust
that referenced
this pull request
Oct 12, 2021
Update books ## nomicon 5 commits in 2747c4bb2cbc0639b733793ddb0bf4e9daa2634e..2d66852a27c5d0ec50ae021820d1de22caa2b1bd 2021-09-19 17:33:32 +0900 to 2021-10-07 19:00:37 +0900 - Fix typo/minor grammar error in subtyping.md (rust-lang/nomicon#317) - doc: clarify `thread::scoped::JoinGuard` chapter (rust-lang/nomicon#313) - Clarify niche optimization on enums with reprs (rust-lang/nomicon#315) - Update rc decrement snipped (rust-lang/nomicon#316) - Remove useless `unsafe`, `mut` and ptr casts in example in `send-and-sync.md` (rust-lang/nomicon#308) ## reference 2 commits in 13747275bd14c2d2b453100498532f9ae5504769..b5c68b02984f74e99d1f1b332029e05f607e2660 2021-09-24 17:44:04 +0900 to 2021-10-02 08:11:35 -0700 - Use subtrait/supertrait, not sub-trait, super-trait. (rust-lang/reference#1095) - Fixed link typo in Generics.md (rust-lang/reference#1094) ## rust-by-example 3 commits in 28aca4a36962c709bce301c03114b5589381dfb8..9a60624fcad0140826c44389571dc622917cd632 2021-09-25 08:19:51 -0300 to 2021-10-04 08:13:53 -0300 - Change 1..n + 1 to 1..=n (rust-lang/rust-by-example#1467) - Close rust-lang/rust-by-example#1464 (rust-lang/rust-by-example#1465) - Fix incorrect formatted print hint; closes rust-lang/rust-by-example#1459. (rust-lang/rust-by-example#1466) ## rustc-dev-guide 11 commits in d1f03cbaa39d9164f5fe4b9b93762668142e0dad..fba15a46ca8efa97e8a955794724ac7ce27805b8 2021-09-24 12:00:29 +0900 to 2021-10-12 08:52:21 +0900 - Update some docs from 2021-10 date triage (rust-lang/rustc-dev-guide#1230) - Recommend `rustfmt --edition=2021` - Update sanitizer documentation - Mention needs-sanitizer-hwaddress directive - Address review comments - Document tracing awesomeness - Move log/tracing instructions to its own file - Update src/closure.md - Fix accidental HTML tag - Update links to `rustc_mir` in Two Phase Borrows (rust-lang/rustc-dev-guide#1226) - Update some docs from 2021-10 date triage (rust-lang/rustc-dev-guide#1224) ## edition-guide 1 commits in 2d9b1b9da706de24650fdc5c3b0182f55c82115d..7c0088ca744d293a5f4b1e2ac378e7c23d30fe55 2021-08-31 10:44:09 +0200 to 2021-10-05 13:28:05 +0200 - Clarify cargo resolver behavior in a workspace. (rust-lang/edition-guide#267) ## embedded-book 2 commits in 4c76da9ddb4650203c129fceffdea95a3466c205..270fccd339e5972d9c900e788f197e81a0bcd956 2021-09-12 12:43:03 +0000 to 2021-10-06 16:28:48 +0000 - Update section 1.4 to mention that some additional packages required (rust-embedded/book#304) - Change `-file-headers` to `--file-headers` (rust-embedded/book#303)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As shown in an earlier "chapter" https://doc.rust-lang.org/rust-by-example/flow_control/for.html#for-and-range