rust_exercises.git
5 months agoAdd CI job to verify that we have no broken links. (#50)
Luca Palmieri [Fri, 24 May 2024 14:45:59 +0000 (16:45 +0200)]
Add CI job to verify that we have no broken links. (#50)

Fix all broken links.

5 months agoadd system to sentence (#48)
Onè [Fri, 24 May 2024 10:58:07 +0000 (06:58 -0400)]
add system to sentence (#48)

5 months agoFix broken links (#47)
Sympatron GmbH [Fri, 24 May 2024 10:57:57 +0000 (12:57 +0200)]
Fix broken links (#47)

5 months agoImprove `Output` explanation.
LukeMathWalker [Fri, 24 May 2024 10:55:58 +0000 (12:55 +0200)]
Improve `Output` explanation.

5 months agoRestructure negative trait bounds section.
LukeMathWalker [Fri, 24 May 2024 10:43:34 +0000 (12:43 +0200)]
Restructure negative trait bounds section.

5 months agoReword instructions.
LukeMathWalker [Fri, 24 May 2024 10:36:15 +0000 (12:36 +0200)]
Reword instructions.

5 months agoAdd trait recommendations.
LukeMathWalker [Fri, 24 May 2024 10:33:35 +0000 (12:33 +0200)]
Add trait recommendations.

5 months agoYou can assign an `if/else` expression to a variable.
LukeMathWalker [Fri, 24 May 2024 10:20:11 +0000 (12:20 +0200)]
You can assign an `if/else` expression to a variable.

5 months agoFix typo.
LukeMathWalker [Fri, 24 May 2024 10:16:04 +0000 (12:16 +0200)]
Fix typo.

5 months agoExplain that generic parameters don't have to be single letters.
LukeMathWalker [Fri, 24 May 2024 10:12:51 +0000 (12:12 +0200)]
Explain that generic parameters don't have to be single letters.

5 months agoAdd missing word (#45)
Onè [Fri, 24 May 2024 08:28:27 +0000 (04:28 -0400)]
Add missing word (#45)

5 months agoUpdate references in `book/src/04_traits` (#46)
Shinya Fujino [Fri, 24 May 2024 08:27:29 +0000 (17:27 +0900)]
Update references in `book/src/04_traits` (#46)

6 months agoFix index.
LukeMathWalker [Thu, 23 May 2024 14:33:55 +0000 (16:33 +0200)]
Fix index.

6 months agoAdd new section on trait bounds.
LukeMathWalker [Thu, 23 May 2024 13:29:42 +0000 (15:29 +0200)]
Add new section on trait bounds.

6 months agoRemove ambiguity in 03/07 exercise mandate.
LukeMathWalker [Thu, 23 May 2024 12:39:43 +0000 (14:39 +0200)]
Remove ambiguity in 03/07 exercise mandate.

6 months agoImprove `as` casting exercise.
LukeMathWalker [Thu, 23 May 2024 12:37:05 +0000 (14:37 +0200)]
Improve `as` casting exercise.

6 months agoreword tuples introduction (#42)
Onè [Thu, 23 May 2024 12:29:55 +0000 (08:29 -0400)]
reword tuples introduction (#42)

6 months agotypos (#41)
Onè [Thu, 23 May 2024 12:29:37 +0000 (08:29 -0400)]
typos (#41)

* that to than

* add missing s

* an to a

Next letter is a consonant sound

6 months agoAlign arrows in diagrams (#39)
Onè [Thu, 23 May 2024 07:05:34 +0000 (03:05 -0400)]
Align arrows in diagrams (#39)

6 months agoChange part of speech for syntax (#40)
Onè [Thu, 23 May 2024 07:05:22 +0000 (03:05 -0400)]
Change part of speech for syntax (#40)

6 months agoremove unused footnote (#38)
Onè [Thu, 23 May 2024 07:04:58 +0000 (03:04 -0400)]
remove unused footnote (#38)

6 months agoUse "bytes" instead of "characters" consistently when talking about length of a ...
LukeMathWalker [Wed, 22 May 2024 10:06:40 +0000 (12:06 +0200)]
Use "bytes" instead of "characters" consistently when talking about length of a `String`.

6 months agoAdd more resources to "Derive" section. Closes #34
LukeMathWalker [Wed, 22 May 2024 10:04:22 +0000 (12:04 +0200)]
Add more resources to "Derive" section. Closes #34

6 months agoFix test to use &mut rather than &. Closes #30
LukeMathWalker [Wed, 22 May 2024 09:11:05 +0000 (11:11 +0200)]
Fix test to use &mut rather than &. Closes #30

6 months agoAdd i32/u32 suffix for numeric literals in 04_traits/01_trait (#20)
Fangyi Zhou [Wed, 22 May 2024 09:04:04 +0000 (10:04 +0100)]
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.

6 months agoFix links.
LukeMathWalker [Wed, 22 May 2024 09:03:19 +0000 (11:03 +0200)]
Fix links.

6 months agoCheck status field value after patch (#22)
Jae-Won Chung [Wed, 22 May 2024 09:00:51 +0000 (05:00 -0400)]
Check status field value after patch (#22)

6 months agoUpdate 04_scoped_threads.md (#21)
jw013 [Wed, 22 May 2024 09:00:24 +0000 (05:00 -0400)]
Update 04_scoped_threads.md (#21)

Fix incorrect statement and remove unintended line break.

6 months agoFix a typo in 03_ticket_v1/08_stack (#19)
Fangyi Zhou [Sat, 18 May 2024 15:57:02 +0000 (16:57 +0100)]
Fix a typo in 03_ticket_v1/08_stack (#19)

The type argument of `size_of` is `<u8>` instead of `<String>`.

6 months agomisunderstand the implements verb (#18)
taohua [Sat, 18 May 2024 15:56:39 +0000 (23:56 +0800)]
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>
6 months agoFix typo in 05_ticket_v2/09_error_trait/[...] instructions (#13)
Loup Federico [Sat, 18 May 2024 15:54:50 +0000 (17:54 +0200)]
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`.

6 months agofix spelling error (#11)
Thanos [Sat, 18 May 2024 15:54:24 +0000 (18:54 +0300)]
fix spelling error (#11)

6 months agoFix typo in 10_clone.md illustration (#10)
Loup Federico [Sat, 18 May 2024 10:03:05 +0000 (12:03 +0200)]
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`.

6 months agoGrammar typo (#7)
Ernie Hershey [Fri, 17 May 2024 14:59:04 +0000 (10:59 -0400)]
Grammar typo (#7)

6 months ago10_as_casting.md: fix 256 bit representation (#6)
Wojtek Porczyk [Fri, 17 May 2024 14:58:50 +0000 (16:58 +0200)]
10_as_casting.md: fix 256 bit representation (#6)

6 months agoMerge pull request #3 from phmx/patch-1
Luca Palmieri [Fri, 17 May 2024 11:29:53 +0000 (13:29 +0200)]
Merge pull request #3 from phmx/patch-1

Fix a nano-typo in 04_panics.md

6 months agoMerge pull request #4 from vrnvu/main
Luca Palmieri [Fri, 17 May 2024 11:29:30 +0000 (13:29 +0200)]
Merge pull request #4 from vrnvu/main

fixes usage valid_description typo

6 months agofixes usage valid_description
Arnau Diaz [Fri, 17 May 2024 09:46:20 +0000 (11:46 +0200)]
fixes usage valid_description

6 months agoReword `MutexGuard` explanation.
LukeMathWalker [Fri, 17 May 2024 09:19:57 +0000 (11:19 +0200)]
Reword `MutexGuard` explanation.

6 months agoFix a nano-typo in 04_panics.md
Maxim Philippov [Fri, 17 May 2024 08:32:16 +0000 (10:32 +0200)]
Fix a nano-typo in 04_panics.md

6 months agoClarify where the first exercise is.
LukeMathWalker [Fri, 17 May 2024 07:59:34 +0000 (09:59 +0200)]
Clarify where the first exercise is.

6 months agoAdd GitHub link.
LukeMathWalker [Thu, 16 May 2024 14:46:45 +0000 (16:46 +0200)]
Add GitHub link.

6 months agoDon't unwrap when trying to close the writer half in 08/07
LukeMathWalker [Thu, 16 May 2024 13:32:27 +0000 (15:32 +0200)]
Don't unwrap when trying to close the writer half in 08/07

6 months agoNewlines.
LukeMathWalker [Thu, 16 May 2024 11:18:19 +0000 (13:18 +0200)]
Newlines.

6 months agoAdd StreamExt::merge
LukeMathWalker [Thu, 16 May 2024 11:17:59 +0000 (13:17 +0200)]
Add StreamExt::merge

6 months agoFix typo in code snippet.
LukeMathWalker [Thu, 16 May 2024 10:43:11 +0000 (12:43 +0200)]
Fix typo in code snippet.

6 months agoExplain how to cancel a spawned future.
LukeMathWalker [Thu, 16 May 2024 10:43:05 +0000 (12:43 +0200)]
Explain how to cancel a spawned future.

6 months agoExplain how tokio::spawn behaves with respect to panics.
LukeMathWalker [Thu, 16 May 2024 08:59:59 +0000 (10:59 +0200)]
Explain how tokio::spawn behaves with respect to panics.

6 months agoTypo.
LukeMathWalker [Thu, 16 May 2024 08:42:45 +0000 (10:42 +0200)]
Typo.

6 months agoFix: configure and read from socket correctly in 08/05
LukeMathWalker [Thu, 16 May 2024 08:14:46 +0000 (10:14 +0200)]
Fix: configure and read from socket correctly in 08/05

6 months agoUpdate guidance in 08/04.
LukeMathWalker [Thu, 16 May 2024 08:04:49 +0000 (10:04 +0200)]
Update guidance in 08/04.

6 months agoTypo.
LukeMathWalker [Thu, 16 May 2024 07:20:07 +0000 (09:20 +0200)]
Typo.

6 months agoFix crate name.
LukeMathWalker [Thu, 16 May 2024 07:12:47 +0000 (09:12 +0200)]
Fix crate name.

6 months agoLast chapter on async Rust
LukeMathWalker [Wed, 15 May 2024 18:00:48 +0000 (20:00 +0200)]
Last chapter on async Rust

6 months agoExplain.
LukeMathWalker [Tue, 14 May 2024 13:54:26 +0000 (15:54 +0200)]
Explain.

6 months agoUse &str rather than &String
LukeMathWalker [Tue, 14 May 2024 12:56:22 +0000 (14:56 +0200)]
Use &str rather than &String

6 months agoUse &str rather than &String.
LukeMathWalker [Tue, 14 May 2024 12:53:55 +0000 (14:53 +0200)]
Use &str rather than &String.

6 months agoReword.
LukeMathWalker [Tue, 14 May 2024 12:46:09 +0000 (14:46 +0200)]
Reword.

6 months agoAdapt GitHub landing page.
LukeMathWalker [Tue, 14 May 2024 12:22:34 +0000 (14:22 +0200)]
Adapt GitHub landing page.

6 months agoImprove landing page.
LukeMathWalker [Tue, 14 May 2024 12:18:14 +0000 (14:18 +0200)]
Improve landing page.

6 months agoTypo.
LukeMathWalker [Tue, 14 May 2024 09:18:04 +0000 (11:18 +0200)]
Typo.

6 months agoElaborate further on `Add`.
LukeMathWalker [Tue, 14 May 2024 09:00:59 +0000 (11:00 +0200)]
Elaborate further on `Add`.

6 months agoLink to Rustonomicon for struct's data layout.
LukeMathWalker [Tue, 14 May 2024 08:56:14 +0000 (10:56 +0200)]
Link to Rustonomicon for struct's data layout.

6 months agoLink directly to `String` type.
LukeMathWalker [Tue, 14 May 2024 08:53:34 +0000 (10:53 +0200)]
Link directly to `String` type.

6 months agoUse more precise language in task assignment.
LukeMathWalker [Tue, 14 May 2024 08:52:46 +0000 (10:52 +0200)]
Use more precise language in task assignment.

6 months agoMention that `Copy` can be derived.
LukeMathWalker [Tue, 14 May 2024 08:51:45 +0000 (10:51 +0200)]
Mention that `Copy` can be derived.

6 months agoFix instructions.
LukeMathWalker [Tue, 14 May 2024 08:05:25 +0000 (10:05 +0200)]
Fix instructions.

6 months agoCheck the implementation of Display in the tests.
LukeMathWalker [Tue, 14 May 2024 08:03:45 +0000 (10:03 +0200)]
Check the implementation of Display in the tests.

6 months agoFix instructions.
LukeMathWalker [Tue, 14 May 2024 08:02:29 +0000 (10:02 +0200)]
Fix instructions.

6 months agoComplete section on read-only data segment.
LukeMathWalker [Mon, 13 May 2024 19:10:54 +0000 (21:10 +0200)]
Complete section on read-only data segment.

6 months agoFix tests
LukeMathWalker [Mon, 13 May 2024 19:00:43 +0000 (21:00 +0200)]
Fix tests

6 months agoFix: error type
LukeMathWalker [Mon, 13 May 2024 18:52:40 +0000 (20:52 +0200)]
Fix: error type

6 months agoFix: `recv` returns an `Option<Ticket>`
LukeMathWalker [Mon, 13 May 2024 18:30:01 +0000 (20:30 +0200)]
Fix: `recv` returns an `Option<Ticket>`

6 months agoFix: use curly braces rather than parentheses
LukeMathWalker [Mon, 13 May 2024 13:30:50 +0000 (15:30 +0200)]
Fix: use curly braces rather than parentheses

6 months agoFix: remove unnecessary dereference.
LukeMathWalker [Mon, 13 May 2024 12:25:23 +0000 (14:25 +0200)]
Fix: remove unnecessary dereference.

6 months agoFix typo.
LukeMathWalker [Mon, 13 May 2024 12:03:49 +0000 (14:03 +0200)]
Fix typo.

6 months agoFix test.
LukeMathWalker [Mon, 13 May 2024 11:58:35 +0000 (13:58 +0200)]
Fix test.

6 months agoRemove IntoIterator impl for &TicketStore
LukeMathWalker [Mon, 13 May 2024 11:49:10 +0000 (13:49 +0200)]
Remove IntoIterator impl for &TicketStore

6 months agoFix typo in comment.
LukeMathWalker [Mon, 13 May 2024 10:51:20 +0000 (12:51 +0200)]
Fix typo in comment.

6 months ago100 exercises to learn Rust
LukeMathWalker [Sun, 12 May 2024 20:21:03 +0000 (22:21 +0200)]
100 exercises to learn Rust