Merge pull request #1053 from 01-edu/rust-quest-05-macro_calculator-01-855

update readme
This commit is contained in:
MSilva95 2022-04-14 11:43:55 +01:00 committed by GitHub
commit 872b383fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ fn main(){
Food {
name: String::from("big mac"),
calories: ["2133.84kJ".to_string(), "510kcal".to_string()],
protein: 27.0,
proteins: 27.0,
fats: 26.0,
carbs: 41.0,
nbr_of_portions: 2.0,
@ -68,7 +68,7 @@ fn main(){
Food {
name: "pizza margherita".to_string(),
calories: ["1500.59kJ".to_string(), "358.65kcal".to_string()],
protein: 13.89,
proteins: 13.89,
fats: 11.21,
carbs: 49.07,
nbr_of_portions: 4.9,