Carol (Nichols || Goulding)
f8ed2ced5d
Backport changes from tech review to md
2025-05-12 12:58:14 -05:00
Carol (Nichols || Goulding)
a2000e6fcb
Addressed tech review comments
2025-05-12 12:58:14 -05:00
Carol (Nichols || Goulding)
ac5daca4e7
Chapter 4 from tech review
2025-05-12 12:58:14 -05:00
Carol (Nichols || Goulding)
33ed793003
Update compiler errors
2025-05-08 16:28:56 -05:00
Carol (Nichols || Goulding)
a619cc5f07
Fixes for ch3 tech review; backported through
2025-05-08 16:28:56 -05:00
Carol (Nichols || Goulding)
127811de30
Chapter 3 from tech review
2025-05-08 16:28:56 -05:00
Carol (Nichols || Goulding)
d33916341d
Update ch01 nostarch docx from src md; sending back to nostarch
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
aba1ee29dc
Backport tech review changes from docx to src md
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
57674b0550
Tech review edits for chapter 2
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
40d52d4b4c
Update ch02 nostarch md+docx with src md; sending back to nostarch
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
649abdb839
Sync docx to nostarch md where relevant
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
cc16b263a1
Updated ch02 docx output to match md
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
5093c1d8cf
Update code output again; a few have been changed since the last regen
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
ffffb06050
Backport changes from ch02 docx to md
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
0b2f215762
Ch02 after tech review
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
470291adfc
Handled tech review comments in ch01
2025-04-08 14:24:27 -04:00
Carol (Nichols || Goulding)
9f7f9ada34
Ch01 after tech review
2025-04-08 14:24:27 -04:00
Chris Krycho
45f0536736
Merge pull request #4297 from rust-lang/chrome-issue-callout-chapter-talk
...
Ch. 21: call out Chrome multiple-connections issue
2025-03-21 17:23:52 -06:00
Chris Krycho
bf3d2256c8
Ch. 21: call out Chrome multiple-connections issue
...
Fixes #3545
Co-authored by: Karen Sarkisyan <karen.sarkisyan01@gmail.com >
Co-authored by: Ludi Rehak <ludi317@gmail.com >
2025-03-21 17:21:09 -06:00
Chris Krycho
691c9581dc
Merge pull request #4295 from mianlang/refactor
...
Ch. 16: refactor 16-6 to using listing component
2025-03-21 17:12:06 -06:00
mianlang
e1c70a31c8
refactor 16-6 to using listing component
2025-03-22 01:02:02 +08:00
Chris Krycho
d27a805edd
Merge pull request #4294 from rust-lang/work-offline-chapter-one
...
Ch. 01: Show how to work offline
2025-03-21 09:13:42 -06:00
Chris Krycho
a4f9417415
Ch. 01: Show how to work offline
...
Fixes #3279
2025-03-21 09:09:56 -06:00
Chris Krycho
9220fa1ead
Merge pull request #4293 from rust-lang/clarify-sentences-about-pub-use
...
Ch. 07: Clarify sentences about `pub use`
2025-03-21 08:47:50 -06:00
Chris Krycho
72ad14e4ac
Ch. 07: Clarify sentences about pub use
...
This is still a *bit* finicky, but it is slightly clearer than before,
and at least addresses the underlying issue here.
Fixes #3645
2025-03-21 08:41:23 -06:00
Chris Krycho
6875f02fef
Merge pull request #4292 from rust-lang/ch-consist-ordering-use-statements
...
Ch. 02: Consistent ordering of `use` statements
2025-03-21 08:07:04 -06:00
Chris Krycho
be48c05755
Ch. 02: Consistent ordering of use statements
...
Adopt the idiomatic pattern of separating `std` from third-party `use`
statements, with the result that we get the ordering we want for Ch. 07
for “free”.
Fixes #3121
2025-03-21 07:41:19 -06:00
Chris Krycho
e5492e67e5
Merge pull request #4271 from mianlang/main
...
Anchors on listings
2025-03-21 07:34:14 -06:00
mianlang
ba072b84bb
change listing text to <a> tag in figcaption to provide link
2025-03-21 14:07:35 +08:00
gaoyuan and Chris Krycho
5bcf1bf546
add id to Listing with number attribute for cross reference
...
update tests after new attribute id added
Co-authored-by: Chris Krycho <hello@chriskrycho.com >
2025-03-21 14:07:35 +08:00
Chris Krycho
e380269080
Merge pull request #4288 from rust-lang/ch-tweak-sections-phrase-improvemnt
...
Ch. 17: another tweak to how we phrase things about sections
2025-03-20 16:30:28 -06:00
Chris Krycho
126e5fd411
Ch. 17: another tweak to how we phrase things about sections
2025-03-20 16:18:25 -06:00
Chris Krycho
3433498a70
Merge pull request #4287 from mianlang/fix-broken-link
...
Ch. 20: correct listing number
2025-03-20 15:22:47 -06:00
mianlang
1d1424ba1c
Ch. 20: correct listing number
2025-03-21 01:05:58 +08:00
Chris Krycho
21fcf73daf
Merge pull request #4284 from reitzig/patch-1
...
Ch. 10.3: clarify language detail
2025-03-20 08:58:15 -06:00
Rick Rainey, CKA,CKS,CKAD,KCNA and Chris Krycho
05f17f0d43
Ch. 17: minor typos and link reference ( #4286 )
...
Co-authored-by: Chris Krycho <hello@chriskrycho.com >
2025-03-20 08:16:11 -06:00
Raphael
f6bd152fa7
Ch. 10.3: clarify language detail
...
The former phrasing seemed to suggest that we _must not_ annotate types _unless_ there are multiple possibilities.
In fact, we are allowed to add redundant annotations.
Cases where no annotation is needed _despite_ multiple possible types -- e.g. `let n = 8` -- are, presumably, intentionally left out here, so not touching that.
2025-03-18 11:37:14 +01:00
Chris Krycho
d3e8ac3ebd
Merge pull request #4282 from rust-lang/ch09-module-privacy
...
Ch. 9: correctly demonstrate privacy with module
2025-03-17 17:19:57 -06:00
Chris Krycho
a6bede67a2
Ch. 9: correctly demonstrate privacy with module
...
The code as actually written *did* conform to the expetaction of the
text, but only because it was in a `lib.rs` file and so in a module
distinct from the scope directly accessible from `main.rs`; as shown in
the text presentation, however, it was not obvious that it was in a
`lib.rs`, and that detail was elided.
Rename the `lib.rs` to `guessing_game.rs` and declare it as a module in
the `main.rs` file, update the `Listing` to name it, and update the text
to call out the creation of the module.
2025-03-17 17:15:42 -06:00
Chris Krycho
6156ff18b2
Merge pull request #4281 from rust-lang/state-option-etc
...
Ch. 18: correct discussion of delegation in `Post` methods
2025-03-17 17:02:40 -06:00
Chris Krycho
8904592b6f
Ch. 18: correct discussion of delegation in Post methods
...
Fixes #3635
2025-03-17 16:57:53 -06:00
Chris Krycho
b660608304
Merge pull request #4165 from rust-lang/tell-folks-abi-ref
...
Ch. 20: tell folks to see the Reference for more ABI info
2025-03-17 15:12:33 -06:00
Chris Krycho
4b2590f90c
Merge branch 'main' into tell-folks-abi-ref
2025-03-17 15:09:41 -06:00
Chris Krycho
39c34443e7
Merge pull request #4256 from km274/ch-10.1-minor-clarifications
...
Ch 10.1 minor clarifications
2025-03-17 14:20:48 -06:00
Chris Krycho
6dd246c12a
Merge pull request #4232 from anu-sin-theta/main
...
Clarified the misunderstanding b/w crates, module, items
2025-03-17 13:58:12 -06:00
Chris Krycho
828d75c060
Update src/ch02-00-guessing-game-tutorial.md
2025-03-17 13:55:42 -06:00
Chris Krycho
ac911c4223
Merge pull request #4280 from rust-lang/fixes-counting-line-simplify
...
Ferris: always show, even when it’s small
2025-03-17 11:50:24 -06:00
Chris Krycho
8372e56d40
Ferris: always show Ferrises, even if small
...
Previously, when we incorporated Ferris into the container for the
buttons, we were bringing along the visibility of the buttons even when
it was important to know that the code wouldn’t compile. This changes
that by showing and hiding the buttons themselves rather than their
container.
Fixes #4274
2025-03-17 11:42:44 -06:00
Chris Krycho
9847e79350
Ferris: simplify line counting for size determination
...
This is a trivial thing, but I found the previous “replace a terminal
newline and then count the rest” rather less than obvious. Make the
logic more explicit and, as a fun bonus, skip allocating an extra string
along the way. (Not that it matters, in this case, but it’s always
nice to make that kind of improvement.)
2025-03-17 11:41:09 -06:00
Chris Krycho
fb2d874349
Merge pull request #4279 from rust-lang/mention-std-pin-use
...
Ch. 17: mention `use std::pin::{Pin, pin};` on introduction
2025-03-17 10:30:29 -06:00