Chris Krycho
ea696178f4
Merge pull request #4168 from damoasda/ch06-02-fix
...
Fix chapter number
2024-12-18 15:49:08 -07:00
Chris Krycho
5aaf712fa8
Merge pull request #3428 from TruscaPetre/patch-1
...
A better phrasing for generic methods.
2024-12-18 15:48:09 -07:00
Chris Krycho
17e2dcb382
Ch. 10.1: further clarify graf about methods in impl<T> ... blocks
2024-12-18 15:42:10 -07:00
Chris Krycho
7982ad015a
Merge main into TruscaPetre:patch-1
2024-12-18 15:34:46 -07:00
Herbert Reiter
8863a72dee
Fix chapter number
2024-12-18 20:46:24 +01:00
Chris Krycho
1855609b2c
Merge pull request #4098 from forresthopkinsa/patch-1
...
Fix minor grammatical error
2024-12-18 10:38:19 -07:00
Chris Krycho
a945c6567b
Merge pull request #3608 from LennySCSZ/main
...
Update appendix-06-translation.md to add another Chinese translation.
2024-12-18 10:34:22 -07:00
Chris Krycho
b99b3f9647
Merge branch 'main' into patch-1
2024-12-18 10:34:01 -07:00
Chris Krycho
0566029791
Ch. 5.3: dodge a grammatical tripwire
...
Which verb tense matches? Make it so we don’t have to care!
2024-12-18 10:32:57 -07:00
Chris Krycho
9175d69807
Link to GH rather than xfoss in Translations list
2024-12-18 10:25:33 -07:00
Chris Krycho
2f61a8d68c
Merge pull request #3625 from rinthel/patch-1
...
Change Korean translation repo to newer
2024-12-16 12:51:52 -07:00
Chris Krycho
3c000b4a42
Merge pull request #4167 from rust-lang/joeljosedev/main
...
Clarify/improve readability in Ch. 02 discussion of `Result` variants
2024-12-16 12:37:25 -07:00
Chris Krycho
cd5ac75f7d
Merge main into joeljosedev/main and apply changes to src
2024-12-16 12:32:12 -07:00
Chris Krycho
da7603e269
Merge pull request #4166 from rust-lang/conclude-§01-rustonomicon
...
Ch. 20: conclude §01 with a reference to the Rustonomicon
2024-12-16 11:18:21 -07:00
Chris Krycho
f75817ae2e
Ch. 20: conclude §01 with a reference to the Rustonomicon
2024-12-16 11:12:37 -07:00
Chris Krycho
ad2011d3bc
Merge pull request #4164 from rust-lang/ch10-03-static-error-messages
...
Ch. 10: clarify note about compiler errors and `'static`
2024-12-16 09:11:34 -07:00
Chris Krycho
80d6bbeacb
Ch. 10: clarify note about compiler errors and 'static
...
- Merge in `main` and resolve merge conflicts.
- Integrate both branches’ suggestions, then rephrase to stay closer to
the original output.
2024-12-16 09:05:52 -07:00
Brian G. Merrell
01f0b1bbb4
Help with ambiguity about 'static lifetimes
2024-12-14 03:05:15 -07:00
Chris Krycho
cd3b1c048b
Merge pull request #3702 from veera-sivarajan/add-letElse
...
Introduce `let`-`else` statement
2024-12-13 14:58:51 -07:00
Chris Krycho
1787dd1c62
Integrate and update 'veera-sivarajan:add-letElse'
...
- Merge in changes from `main`, including moving the chapter.
- Merge in newly-written introduction of `let-else` in the same section
as the `if let` discussion.
- Rewrap lines.
2024-12-13 14:24:21 -07:00
Chris Krycho
0b5713345a
Ch. 6: Introduce let-else after if let.
...
This is not technically part of the 2024 Edition, since it is available
on the 2021 edition as well, but it *will* be an important update for
the 2024 Edition revision of the print book!
2024-12-13 14:24:21 -07:00
Chris Krycho
e78a93c0eb
Merge pull request #3800 from pitaj/patch-1
...
Fix misleading explanation of comma in `$(),*`
2024-12-12 16:32:18 -07:00
Chris Krycho
fa7e1c3eab
Merge 'main' into 'pitaj:patch-1'
2024-12-12 16:28:53 -07:00
Egor Suvorov and Chris Krycho
b195aeb56e
ch18-03: Matching Named Variables: mention if let/while let ( #3110 )
...
* Matching Named Variables: mention `if let`/`while let`
`if let` and `while let` introduce new scope for named variables just like `match`. However, they do not support match guards yet, see RFC 2497.
* Ch. 19: further clarify discussion of `if|while let` patterns
- While keeping the note about `if let` and `while let` when introducing
the discussion of matching named variables, bring the phrasing back
closer to the original.
- Move the distinction that `if let` and `while let` do not have the
equivalent of match guards down to the discussion of match guards.
- Line wrapping.
---------
Co-authored-by: Chris Krycho <hello@chriskrycho.com >
2024-12-12 10:22:44 -07:00
Aizon and Chris Krycho
c9820adbfa
Ch. 4: Rephrase/clarify paragraph on reference scope ( #3688 )
...
Co-authored-by: Chris Krycho <hello@chriskrycho.com >
2024-12-12 09:45:20 -07:00
Chris Krycho
a5ccba9db7
Merge pull request #3699 from proski/closure-note
...
Simplify note about functions in ch13-01-closures.md
2024-12-12 09:10:55 -07:00
Chris Krycho
60b198a27f
Further clarify note about functions implementing Fn traits
2024-12-12 08:49:16 -07:00
Chris Krycho
1521e4efc6
Merge pull request #4074 from spotlesscoder/patch-1
...
fix: make the reason more understandable
2024-12-12 07:59:41 -07:00
Chris Krycho
addb9e1f41
Update src/ch04-03-slices.md for formatting
2024-12-12 07:53:24 -07:00
spotlesscoder
66ef2b6fcb
Merge branch 'main' into patch-1
2024-12-12 07:29:25 +01:00
Chris Krycho
6f0b1a80dc
Merge pull request #3180 from aadeexyz/patch-1
...
Fixed grammatical error in the comment on line 22
2024-12-11 13:53:30 -07:00
Chris Krycho
8a46812ba1
Ch. 4: further tweaks to explanatory comment in Listing 4.8
2024-12-11 13:50:12 -07:00
Chris Krycho
1dd63335da
Merge main into aadeexyz:patch-1
2024-12-11 13:48:31 -07:00
Chris Krycho and Carol
edb6a432a6
Improve wording in ch04-understanding-ownership/listing-04-08/src/main.rs
...
Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com >
2024-12-11 13:41:06 -07:00
Chris Krycho
d491e87a04
Merge pull request #3367 from bravequickcleverfibreyarn/ch17-02-trait-objects.md
...
ch17-02: Monomorphization applies to generics in general
2024-12-11 13:14:04 -07:00
Chris Krycho
a3d57965e4
Merge main into bravequickcleverfibreyarn:ch17-02-trait-objects.md
2024-12-11 13:07:24 -07:00
Chris Krycho
f8efec57c5
Merge pull request #4159 from rust-lang/ch21-vec-drain
...
Ch. 21: Use `Vec::drain` to teach alternatives to `Option`
2024-12-11 12:02:38 -07:00
Chris Krycho
bfd6016a7a
Ch. 21: Rename a no-listing listing so its name is sensible
2024-12-11 10:24:23 -07:00
Chris Krycho
e195ff4119
Ch. 21: word-smithing and further code tweaks to use Vec::drain
2024-12-11 09:53:42 -07:00
Chris Krycho
99a8c103a7
Merge 'main' into 'andrei-21/main'
2024-12-10 13:25:28 -07:00
Chris Krycho
25a47dd387
Merge pull request #4155 from WantenMN/typo
...
fix(typo): correct punctuation in ch15-06-reference-cycles.md
2024-12-10 11:11:11 -07:00
Wanten
815bd7bba7
fix(typo): correct punctuation in ch15-06-reference-cycles.md
2024-12-10 20:14:23 +08:00
Chris Krycho
6eb5b59bd0
Merge pull request #4152 from rust-lang/Ch.20-fn-impl-box
...
Ch. 20: show both `impl Fn` and `Box<dyn Fn>`
2024-12-09 17:40:32 -07:00
Chris Krycho
8bad93e0c3
Ch. 20: show both impl Fn and Box<dyn Fn>
...
The existing text here has a long historical record; it predates `impl`
or `dyn` existing at all, much less the version we landed on in Rust
2018. Update it to suggest defaulting to `impl Fn`, with trait objects
`Box<dyn Fn>` the fallback.
Fixes #1514
Fixes #3272
2024-12-09 17:37:24 -07:00
Chris Krycho
bb786c8f36
Merge pull request #4151 from rust-lang/super-unit-test
...
Add `use super::*;` to unit-test examples.
2024-12-09 16:01:40 -07:00
Chris Krycho
fcfac818c7
Merge main into PR #3188
2024-12-09 15:56:11 -07:00
Chris Krycho
c4cede2b19
Merge pull request #4150 from rust-lang/indentation-fixes-2023
...
Remove emphasis on four-space indents
2024-12-09 15:21:49 -07:00
Chris Krycho
2186da27a8
Remove emphasis on four-space indents
...
I suspect this one goes *allllll* the way back to Rust for Rubyists.
Fixes #3759
2024-12-09 15:18:03 -07:00
Chris Krycho
bcd6fc0d35
Merge pull request #4149 from rust-lang/commit-fix-git-blame-ignore
...
Fix `.git-blame-ignore-revs` file
2024-12-09 14:43:17 -07:00
Chris Krycho
bd576349da
Fix .git-blame-ignore-revs file
...
It seems to need a full SHA!
2024-12-09 14:40:23 -07:00