Commit graph

109 commits

Author SHA1 Message Date
LukeMathWalker
6c217f7b66 Use "bytes" instead of "characters" consistently when talking about length of a String. 2024-05-22 12:06:40 +02:00
LukeMathWalker
0bce2485ab Add more resources to "Derive" section. Closes #34 2024-05-22 12:04:22 +02:00
LukeMathWalker
b54b0b7023 Fix test to use &mut rather than &. Closes #30 2024-05-22 11:11:05 +02:00
Fangyi Zhou
5bb9333ae9
Add i32/u32 suffix for numeric literals in 04_traits/01_trait (#20)
Without an explicit suffix, the compiler is able to use the i32
implementation without the need for an u32 implementation.
2024-05-22 11:04:04 +02:00
LukeMathWalker
e5eee2e83c Fix links. 2024-05-22 11:03:19 +02:00
Jae-Won Chung
9bda4eb7e0
Check status field value after patch (#22) 2024-05-22 11:00:51 +02:00
jw013
63d9ed8478
Update 04_scoped_threads.md (#21)
Fix incorrect statement and remove unintended line break.
2024-05-22 11:00:24 +02:00
Fangyi Zhou
d5f407d720
Fix a typo in 03_ticket_v1/08_stack (#19)
The type argument of `size_of` is `<u8>` instead of `<String>`.
2024-05-18 17:57:02 +02:00
taohua
44f3260fbe
misunderstand the implements verb (#18)
* Update 08_from.md

* test

* Update exercises/04_traits/08_from/src/lib.rs

---------

Co-authored-by: datewu <hihahajun@gmail.com>
Co-authored-by: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com>
2024-05-18 17:56:39 +02:00
Loup Federico
1d9ba4c25c
Fix typo in 05_ticket_v2/09_error_trait/[...] instructions (#13)
The commented instructions of the exercise ask to use `No description provided` for the description field when calling `easy_ticket` with an invalid description argument. However, the unit test of that behavior compares the description to `Description not provided` instead.

Previous exercises in that part also use `Description not provided`.

Update the exercise 05_ticket_v2/09_error_trait instructions to use `Description not provided` as an expected default  description value when calling `easy_ticket` with no description instead of `No description provided`.
2024-05-18 17:54:50 +02:00
Thanos
8c3ef6cb51
fix spelling error (#11) 2024-05-18 17:54:24 +02:00
Loup Federico
f2865b25db
Fix typo in 10_clone.md illustration (#10)
The clone() illustration shows two `s` values in the stack when one of them is the original `s` value which got cloned and the other one should be the new `t` value created from `s`.

Rename the second value from `s` to `t`.
2024-05-18 12:03:05 +02:00
Ernie Hershey
45c5e390c0
Grammar typo (#7) 2024-05-17 16:59:04 +02:00
Wojtek Porczyk
fe189a64e4
10_as_casting.md: fix 256 bit representation (#6) 2024-05-17 16:58:50 +02:00
Luca Palmieri
ee055245e5
Merge pull request #3 from phmx/patch-1
Fix a nano-typo in 04_panics.md
2024-05-17 13:29:53 +02:00
Luca Palmieri
a8ba7ddec6
Merge pull request #4 from vrnvu/main
fixes usage valid_description typo
2024-05-17 13:29:30 +02:00
Arnau Diaz
d9b6b493e8 fixes usage valid_description 2024-05-17 11:46:20 +02:00
LukeMathWalker
7d1d90fb37 Reword MutexGuard explanation. 2024-05-17 11:19:57 +02:00
Maxim Philippov
69e7b28097
Fix a nano-typo in 04_panics.md 2024-05-17 10:32:16 +02:00
LukeMathWalker
d698ccdc1e Clarify where the first exercise is. 2024-05-17 09:59:34 +02:00
LukeMathWalker
9e7da6766b Add GitHub link. 2024-05-16 16:46:45 +02:00
LukeMathWalker
17cfa531ba Don't unwrap when trying to close the writer half in 08/07 2024-05-16 15:32:27 +02:00
LukeMathWalker
0665cf0b25 Newlines. 2024-05-16 13:18:19 +02:00
LukeMathWalker
95bddb12ca Add StreamExt::merge 2024-05-16 13:17:59 +02:00
LukeMathWalker
2bbdf9ff13 Fix typo in code snippet. 2024-05-16 12:43:11 +02:00
LukeMathWalker
2f2a2a335b Explain how to cancel a spawned future. 2024-05-16 12:43:05 +02:00
LukeMathWalker
73e7ddf913 Explain how tokio::spawn behaves with respect to panics. 2024-05-16 10:59:59 +02:00
LukeMathWalker
e269539a42 Typo. 2024-05-16 10:42:45 +02:00
LukeMathWalker
5d68add5ad Fix: configure and read from socket correctly in 08/05 2024-05-16 10:14:46 +02:00
LukeMathWalker
804b275b06 Update guidance in 08/04. 2024-05-16 10:04:49 +02:00
LukeMathWalker
f671914dfb Typo. 2024-05-16 09:20:07 +02:00
LukeMathWalker
5fda479c96 Fix crate name. 2024-05-16 09:12:47 +02:00
LukeMathWalker
aa58dcb5ca Last chapter on async Rust 2024-05-15 20:01:05 +02:00
LukeMathWalker
6e581440bf Explain. 2024-05-14 15:54:26 +02:00
LukeMathWalker
28a1bb94ad Use &str rather than &String 2024-05-14 14:56:22 +02:00
LukeMathWalker
3d534dd336 Use &str rather than &String. 2024-05-14 14:53:55 +02:00
LukeMathWalker
933d5dd4b4 Reword. 2024-05-14 14:46:09 +02:00
LukeMathWalker
519e5489ef Adapt GitHub landing page. 2024-05-14 14:22:34 +02:00
LukeMathWalker
9776cb7593 Improve landing page. 2024-05-14 14:18:14 +02:00
LukeMathWalker
3f9fc21618 Typo. 2024-05-14 11:18:04 +02:00
LukeMathWalker
b4f5a45424 Elaborate further on Add. 2024-05-14 11:00:59 +02:00
LukeMathWalker
ab2f0298f0 Link to Rustonomicon for struct's data layout. 2024-05-14 10:56:14 +02:00
LukeMathWalker
a91ff83a75 Link directly to String type. 2024-05-14 10:53:34 +02:00
LukeMathWalker
90caadf797 Use more precise language in task assignment. 2024-05-14 10:52:46 +02:00
LukeMathWalker
6235d8c1ed Mention that Copy can be derived. 2024-05-14 10:51:45 +02:00
LukeMathWalker
2c044a2567 Fix instructions. 2024-05-14 10:05:25 +02:00
LukeMathWalker
ae7769d879 Check the implementation of Display in the tests. 2024-05-14 10:03:45 +02:00
LukeMathWalker
d9a0c025e9 Fix instructions. 2024-05-14 10:02:29 +02:00
LukeMathWalker
602ce11299 Complete section on read-only data segment. 2024-05-13 21:10:54 +02:00
LukeMathWalker
04c4e55b37 Fix tests 2024-05-13 21:02:44 +02:00