Skip to content

Commit

Permalink
fix(structs3): Small adjustment of variable name
Browse files Browse the repository at this point in the history
Co-authored-by: Jannek <squar@informatik.uni-hamburg.de>
  • Loading branch information
JSquar and Jannek authored Sep 19, 2020
1 parent 0f16463 commit 114b54c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exercises/structs/structs3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ impl Package {
// Something goes here...
}

fn get_fees(&self, cents_per_kg: i32) -> ??? {
// Something goes here... (beware of grams to kg conversion)
fn get_fees(&self, cents_per_gram: i32) -> ??? {
// Something goes here...
}
}

Expand Down Expand Up @@ -62,10 +62,10 @@ mod tests {
let sender_country = String::from("Spain");
let recipient_country = String::from("Spain");

let cents_per_kg = ???;
let cents_per_gram = ???;

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

assert_eq!(package.get_fees(cents_per_kg), 4500);
assert_eq!(package.get_fees(cents_per_gram), 4500);
}
}

0 comments on commit 114b54c

Please sign in to comment.