diff options
| author | Michael Walsh <48160144+MpdWalsh@users.noreply.github.com> | 2021-10-30 16:55:58 -0600 |
|---|---|---|
| committer | Michael Walsh <48160144+MpdWalsh@users.noreply.github.com> | 2021-10-30 16:55:58 -0600 |
| commit | d1ee2daf14f19105e6db3f9c610f44293d688532 (patch) | |
| tree | 445a01bab3929a762d1aa4a4686e009ea0ab6b0d /exercises/structs/structs3.rs | |
| parent | 359f81dd0bf5cc82016c56d374b38bf4de8f5893 (diff) | |
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 (https://github.com/rust-lang/rustlings/commit/9ca08b8f2b09366e97896a4a8cf9ff3bb4d54380 and https://github.com/rust-lang/rustlings/commit/114b54cbdb977234b39e5f180d937c14c78bb8b2#diff-ce1c232ff0ddaff909351bb84cb5bff423b5b9e04f21fd4db7ffe443e598e174) removed the mathematical complexity, and I feel this addition is a needed change to further streamline the exercise.
Diffstat (limited to 'exercises/structs/structs3.rs')
| -rw-r--r-- | exercises/structs/structs3.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/structs/structs3.rs b/exercises/structs/structs3.rs index b3aa282..1a81531 100644 --- a/exercises/structs/structs3.rs +++ b/exercises/structs/structs3.rs @@ -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); |
