100-exercises-to-learn-rust icon indicating copy to clipboard operation
100-exercises-to-learn-rust copied to clipboard

A self-paced course to learn Rust, one exercise at a time.

Results 99 100-exercises-to-learn-rust issues
Sort by recently updated
recently updated
newest added

## Bindings In the match pattern `Status::InProgress { assigned_to }`, `assigned_to` is a **binding**.\ We're **destructuring** the `Status::InProgress` variant and binding the `assigned_to` field to a new variable, **[also named...

https://rust-exercises.com/100-exercises/06_ticket_management/07_combinators introduces `filter`, `map` and friends. I think it's probably worth explicitly mentioning that these are lazy operations, and what this means. Coming from a language like JavaScript where there...

It's generally better practice to handle or propagate errors, rather than panicking in response to them. This edit moves panicking to be the _last_ option introduced, rather than the first....

Very early on in the course, we introduce `as` casting: https://rust-exercises.com/100-exercises/02_basic_calculator/10_as_casting A few thoughts on this: 1. I'd argue in general converting between different sizes of integers is a much...

https://rust-exercises.com/100-exercises/01_intro/01_syntax#type-annotations talks about the compiler, and compile-time. The welcome page establishes "we assume you know at least another programming language". Someone coming from e.g. a JavaScript or Python background may...

The issue introduced in #189 still persists. The return type of into_iter is shown like this in the standard library documentation: >fn [into_iter](https://doc.rust-lang.org/std/iter/trait.IntoIterator.html#tymethod.into_iter)(self) ->

Refer to the main code: https://github.com/mainmatter/100-exercises-to-learn-rust/blob/21f3427c928e605b7749ea8e65adf4e1387e34d8/exercises/05_ticket_v2/01_enum/src/lib.rs#L31-L39 It is better to fix the check rather than delete it. Signed-off-by: Wenxing Hou

On https://github.com/mainmatter/100-exercises-to-learn-rust/blob/main/book/src/06_ticket_management/01_arrays.md , it reads: > ### Out-of-bounds access > > If you try to access an element that's out of bounds, Rust will panic: > > ```rust > let...

This isn't really a bug, but both my partner and I learning Rust felt that 5.14 was a beast! I had to cheat and look at the solution. My partner...