Skip to content

Commit d1ee2da

Browse files
committed
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 (9ca08b8 and 114b54c#diff-ce1c232ff0ddaff909351bb84cb5bff423b5b9e04f21fd4db7ffe443e598e174) removed the mathematical complexity, and I feel this addition is a needed change to further streamline the exercise.
1 parent 359f81d commit d1ee2da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/structs/structs3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mod tests {
7373
let sender_country = String::from("Spain");
7474
let recipient_country = String::from("Spain");
7575

76-
let cents_per_gram = ???;
76+
let cents_per_gram = 3;
7777

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

0 commit comments

Comments
 (0)