added(test): save

This commit is contained in:
Tomasz Waszczyk 2022-06-16 23:47:50 +02:00
parent b59f38da23
commit 558dacfa2b
No known key found for this signature in database
GPG Key ID: D2B26226E770BBAA
2 changed files with 1 additions and 3 deletions

View File

@ -1,12 +1,11 @@
// move_semantics1.rs // move_semantics1.rs
// Make me compile! Execute `rustlings hint move_semantics1` for hints :) // Make me compile! Execute `rustlings hint move_semantics1` for hints :)
// I AM NOT DONE
fn main() { fn main() {
let vec0 = Vec::new(); let vec0 = Vec::new();
let vec1 = fill_vec(vec0); let mut vec1 = fill_vec(vec0);
println!("{} has length {} content `{:?}`", "vec1", vec1.len(), vec1); println!("{} has length {} content `{:?}`", "vec1", vec1.len(), vec1);

View File

@ -8,7 +8,6 @@
// more than 40 at once, each apple only costs 1! Write a function that calculates // more than 40 at once, each apple only costs 1! Write a function that calculates
// the price of an order of apples given the quantity bought. No hints this time! // the price of an order of apples given the quantity bought. No hints this time!
// I AM NOT DONE
// Put your function here! // Put your function here!
fn calculate_apple_price(quantity: i32) -> i32 { fn calculate_apple_price(quantity: i32) -> i32 {