Chris Krycho
502d012cab
Ch. 2: intentionally use `{}` at first
...
This supports the prose in the guessing game tutorial, which uses this
as a way of teaching where you can do `{foo}` and where you cannot.
2024-04-19 13:42:05 -06:00
Chris Krycho
6196a0ab45
Merge `main` into `nyurik:inlinefmt2`
2024-04-19 11:57:29 -06:00
Chris Krycho
96224742f3
Merge pull request #3048 from nyurik/format-ident
...
Use v1.58 captured ident formatting in examples
2024-04-19 11:49:12 -06:00
Chris Krycho
18effd3176
Merge pull request #3284 from bravequickcleverfibreyarn/ch11-03-test-organization.md
...
ch11-03: Unnecessary import removal
2024-04-18 12:13:52 -06:00
Chris Krycho
076420ce20
Ch. 11: `use` scope tweak
2024-04-18 12:08:28 -06:00
David Tolnay
e81491c11e
Update syn dependencies in Chapter 19 to 2.0
2024-04-15 11:24:35 -07:00
Chris Krycho
93293f01ac
Merge pull request #3533 from jpearnshaw/patch-2
...
Update listings in ch 11-01 to reflect current output from cargo new
2024-04-10 13:23:34 -06:00
Chris Krycho
566589d52a
Merge pull request #3648 from nlegrand/main
...
Remove hebrew niqqud in 8-14 String::from example
2024-04-10 12:52:01 -06:00
Chris Krycho
dacef10f91
Merge pull request #3880 from kadiwa4/revert_3711
...
Revert #3711
2024-04-08 14:17:23 -06:00
Chris Krycho
60c3a5f623
Merge pull request #3631 from metalalive/update-example
...
Procedure Macro: Update dependencies
2024-04-08 14:14:25 -06:00
Kalle Wachsmuth
8355b06c77
Revert "Merge pull request #3711 from miketon/main"
...
This reverts commit 529b9e0d1a
, reversing
changes made to d1770c8bdf
.
2024-04-08 22:02:32 +02:00
Christian Jansen
3bff679476
Merge branch 'rust-lang:main' into ch20-full-code-update
2024-04-03 17:12:48 -04:00
Chris Jansen
a14b54050c
Updated listings based on `listing-20-24`
...
Updated `main.rs` in both `listing-20-25` and `no-listing-07-final-code` based on `listing-20-24`
2024-04-03 17:12:03 -04:00
Chris Krycho
2adca487f7
Merge pull request #3767 from stomar/formatting-style
...
Update panic! formatting style for Guess example
2024-04-02 19:18:21 -06:00
Chris Krycho
0f91edfc07
Merge pull request #3780 from stomar/correction-in-ch13-01
...
Small correction in ch13-01
2024-04-02 19:13:27 -06:00
Christian Jansen
e7db56aa4d
Merge branch 'rust-lang:main' into ch20-full-code-update
2024-03-29 20:38:18 -04:00
Chris Krycho
529b9e0d1a
Merge pull request #3711 from miketon/main
...
Update loop to Result: 10
2024-03-27 18:05:28 -06:00
Chris Krycho
d1770c8bdf
Merge pull request #3726 from lmanerich/ch12-03-l12
...
Added "--" between run and args on ch12-03-l12
2024-03-27 17:13:10 -06:00
Chris Jansen
bc9bdef970
Update full code reference main.rs in ch20-03
...
Updated the full code reference for `main.rs` at the end of Chapter 20.3 to match the code the tutorial instructs you to write. Namely:
* Formats the `use` statements to match the format in the earlier code blocks
* Updates the `handle_connection` function to use `BufReader` and a `match` expression per the earlier code blocks
2024-03-09 13:43:17 -05:00
Carol (Nichols || Goulding)
940fb140f5
Update to Rust 1.76
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
57516ea03b
Update to Rust 1.75
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
551369f4b1
Update to Rust 1.74
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
e51e1e4457
Update to Rust 1.73
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
c3613dee0c
Update to Rust 1.72
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
25d95a0580
Update to Rust 1.71
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
44a3076190
Update to Rust 1.70
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
fb08e4879d
Update to Rust 1.69
2024-02-19 15:39:35 -05:00
Carol (Nichols || Goulding)
3db049bb6a
Update to Rust 1.68
2024-02-19 15:39:35 -05:00
Marcus Stollsteimer
f082dde4e5
Small correction in ch13-01
...
Fix description: the example tries to count the number of times
`sort_by_key` calls the closure, not how often `sort_by_key` is called.
Also, use a clearer String value in the example code.
2023-11-18 20:10:30 +01:00
Marcus Stollsteimer
81255e776b
Update panic! formatting style for Guess example
2023-11-04 14:32:25 +01:00
Yuri Astrakhan
a786ec4a2b
Use v1.58 captured ident formatting in examples
...
Per https://github.com/rust-lang/book/issues/3047 , use captured identifiers instead of the positional ones for some examples, e.g.
```diff
- println!("Worker {} got a job; executing.", id);
+ println!("Worker {id} got a job; executing.");
```
2023-10-30 11:54:45 -04:00
Yuri Astrakhan
f55ac5d8fa
Inline all format arguments
...
The inlined format arguments are a bit easier to understand,
especially for those familiar with the other languages (python, js).
2023-10-30 11:54:36 -04:00
Luciano Manerich Junior
a6656c5b07
Added "--" between run and args
2023-08-19 17:54:19 -03:00
Mike Ton
a80a425f71
Comments cleaned up and removed
2023-07-19 16:46:31 +00:00
Mike Ton
dc16e35f98
Update loop to Result: 10
2023-07-19 16:30:28 +00:00
Nicolas Legrand
3ceb9936d7
Remove hebrew niqqud in 8-14 String::from example
...
Niqqud (hebrew diacrital system to represent vowels) is mainly used in
poetry and in children's book. Israelis do not use niqqud when they
write.
2023-05-17 11:51:43 +02:00
Ham
12a247444c
Procedure Macro: Update dependencies
2023-05-03 18:24:22 +08:00
Carol (Nichols || Goulding)
d94e03a18a
Update to Rust 1.67.1
2023-02-10 11:01:09 -05:00
Carol (Nichols || Goulding)
f92027c68a
Update to Rust 1.66.1
2023-02-10 10:55:43 -05:00
Jon Earnshaw
bb7aa19d9d
Update listings subsequent to listing 11-1 to reflect current content
2023-02-07 04:49:10 +00:00
Jon Earnshaw
4ddb4f996b
Update Listing 11-1 to reflect current contents
2023-02-07 04:28:22 +00:00
Carol (Nichols || Goulding)
3f64052c04
Upgrade to Rust 1.65
2022-11-03 22:13:58 -04:00
Carol (Nichols || Goulding)
19c75074d1
Upgrade to Rust 1.64
2022-11-03 22:13:58 -04:00
Carol (Nichols || Goulding)
10bf4a3dbd
Upgrade to Rust 1.63
2022-11-03 22:13:58 -04:00
Carol (Nichols || Goulding)
8612c4a580
Updates from copyedit of ch5
2022-10-27 16:00:51 -04:00
Carol (Nichols || Goulding)
e9e0b970a4
Clarify division truncates toward zero. Fixes #2856 .
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
4552413760
Messy snapshot of ch 18 after copyedit review
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
d0f90b3207
Updated snapshot of chapter 11
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
6dd0b64700
Messy snapshot of ch9 after copyedit checks
2022-10-20 16:39:55 -04:00
Carol (Nichols || Goulding)
06ea00d9ca
Update println style in ch8
2022-10-20 16:39:55 -04:00