rustlings-solutions/exercises/structs
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.
2021-10-30 16:55:58 -06:00
..
README.md docs(exercises): updated all exercises readme files 2021-04-23 19:54:31 +02:00
structs1.rs feat: improve watch execution mode 2019-11-11 16:23:35 +01:00
structs2.rs chore: remove struct2 hint comment 2020-05-20 08:31:28 +02:00
structs3.rs fix(structs3.rs): assigned value to cents_per_gram in test 2021-10-30 16:55:58 -06:00

Structs

Rust has three struct types: a classic C struct, a tuple struct, and a unit struct.

Further information