Commit Graph

28 Commits (d6e26bb350e423a8f2a90d9405060fdaf9893736)

Author SHA1 Message Date
mokou 886d599c96 fix(structs): add hint comments 2 years ago
camperdue42 4531c21bf1 fix(structs3): Add panic! statement into structs3
closes #685
2 years ago
mokou 4dffa0d10d fix(structs1): rename to unit-like struct 2 years ago
mokou 19bec50399 feat(structs1): convert structs to use i32 types 2 years ago
mokou ed0f278a8f chore: remove mod.rs files and exercises feature 2 years ago
x-hgg-x 179a75a68d
fix: Include exercises folder in the project structure behind a feature (#917)
closes #859
closes #913
closes #942
2 years ago
Yang Wen 4f7ff5d9c7
fix(structs3): Add a hint for panic (#608)
as a totally newbie to Rust, I don't know panic statement from https://doc.rust-lang.org/book/ and rustlings in the beginning. After a hard searching of [should_panic], then I figure out panic statement. 

So it's helpful to tell the learner that write a panic statement here.
3 years ago
Michael Walsh d1ee2daf14 fix(structs3.rs): assigned value to cents_per_gram in test
Intended to simplify the lesson by removing the need to figure out what the value is meant to be based on the tests.

Previous commits (9ca08b8f2b and 114b54cbdb (diff-ce1c232ff0ddaff909351bb84cb5bff423b5b9e04f21fd4db7ffe443e598e174)) removed the mathematical complexity, and I feel this addition is a needed change to further streamline the exercise.
3 years ago
Zhenghao Lu bf33829da2
fix(structs3): remove redundant 'return' (#852) 3 years ago
Juan Pablo Ramirez d9b69bd1a0 fix: remove trailing whitespace 3 years ago
Zerotask 249ad44cc0
docs(exercises): updated all exercises readme files
all exercises readme files now have a unified structure and a description
3 years ago
Shao Yang Hong 6bd791f2f4
fix(structs): Add 5.3 to structs/README (#652)
Co-authored-by: Shao Yang Hong <shaoyang.hong@ninjavan.co>
3 years ago
Rod Elias 3df094713f
chore: capitalize `c` letter
By capitalizing the `c` letter it makes clear that we're talking about the C programming language.
4 years ago
Darius Wiles 9f3e8c2dde
fix(structs3): reword heading comment (#664) 4 years ago
cadolphs 05a753fe63
fix: add check to prevent naive implementation of is_international
* fix(structs3): Add check to prevent naive implementation

* chore(structs3): Add a missed newline after the test I added
4 years ago
seancad bcf14cf677
fix: update structs README 4 years ago
Jannek Squar 114b54cbdb
fix(structs3): Small adjustment of variable name
Co-authored-by: Jannek <squar@informatik.uni-hamburg.de>
4 years ago
Étienne Barrié 3144d3ae63 chore: Run rustfmt on exercises 4 years ago
Benjamin Jones bb5f404e35 chore: Alter whitespace for consistency
* Add newline after "I AM DONE" in exercises for consistency
* Remove trailing whitespace from exercises
4 years ago
Sebastien Caunes 9ca08b8f2b fix : Use of integer for prices, therefore also for weight
rename confusing "from" and "to" to sender_country and recipient_country as suggested
4 years ago
Jade McGough c7c3130507
chore: remove struct2 hint comment 4 years ago
Dídac Sementé Fernández b66e2e0962 feat: Added exercise structs3.rs 4 years ago
Roberto Vidal 2cdd61294f feat: improve `watch` execution mode
The `watch` command now requires user action to move to the next
exercise.

BREAKING CHANGE: this changes the behavior of `watch`.
5 years ago
marisa f72e5a8f05 fix(structs1): Remove misleading comment 5 years ago
Viacheslav Avramenko 1c4c8764ed feat: Added exercise for struct update syntax 5 years ago
Andre Pratama e0db987441
docs: Fix wrong title
fix #200
5 years ago
Brian Kung cc6a14104d Fixes the irrefutable let pattern warning 5 years ago
Brian Kung 9b92aa08ae Adds a simple exercise for structures 5 years ago