rust-by-practice
rust-by-practice copied to clipboard
Learning Rust By Practice, narrowing the gap between beginner and skilled-dev through challenging examples, exercises and projects.
modify the specified line
Instead of such : ``` fn main() { let mut sum = 0; for i in -3..2 { sum += i } assert!(sum == -5); for c in 'a'..='z' {...
In chapter 16.1, the first practice challenge doesn't allow editing so as to solve the coding problem. http://localhost:3000/formatted-output/formatting.html
The specification says we have to return something that implements Animal, but can't tell which at compile time. The existing solution only returns one concrete type Sheep, while the intent...
Some, perhaps all, pages end with "Firefox Can’t Open This Page". For example, https://practice.rs/why-exercise.html renders as follows on Firefox 100.0b9 (64-bit) on macOS 12.3.1: The page renders correctly on Safari...

[4.1. Numbers](http://localhost:3000/basic-types/numbers.html) [4.2. Char, Bool and Unit](http://localhost:3000/basic-types/char-bool-unit.html) [4.3. Statements and Expressions](http://localhost:3000/basic-types/statements-expressions.html) [4.4. Functions](http://localhost:3000/basic-types/functions.html)
Hi @sunface , thanks for a great library! I'm a little surprised by the answer, I certainly don't think it respects the spirit of the question... Spoiler warning! ```rust fn...