Skip to content

Commit

Permalink
fix(structs3.rs): assigned value to cents_per_gram in test
Browse files Browse the repository at this point in the history
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 (9ca08b8 and 114b54c#diff-ce1c232ff0ddaff909351bb84cb5bff423b5b9e04f21fd4db7ffe443e598e174) removed the mathematical complexity, and I feel this addition is a needed change to further streamline the exercise.
  • Loading branch information
MpdWalsh committed Oct 30, 2021
1 parent 359f81d commit d1ee2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/structs/structs3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ mod tests {
let sender_country = String::from("Spain");
let recipient_country = String::from("Spain");

let cents_per_gram = ???;
let cents_per_gram = 3;

let package = Package::new(sender_country, recipient_country, 1500);

Expand Down

0 comments on commit d1ee2da

Please sign in to comment.