File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
// This shopping list program isn't compiling!
2
2
// Use your knowledge of generics to fix it.
3
3
4
+ // Execute `rustlings hint generics1` for hints!
5
+
4
6
// I AM NOT DONE
5
7
6
8
fn main ( ) {
Original file line number Diff line number Diff line change 1
1
// This powerful wrapper provides the ability to store a positive integer value.
2
2
// Rewrite it using generics so that it supports wrapping ANY type.
3
3
4
+ // Execute `rustlings hint generics2` for hints!
5
+
4
6
// I AM NOT DONE
5
7
6
8
struct Wrapper {
Original file line number Diff line number Diff line change 1
1
// iterators1.rs
2
- //
2
+ //
3
3
// Make me compile by filling in the `???`s
4
4
//
5
5
// When performing operations on elements within a collection, iterators are essential.
6
- // This module helps you get familiar with the structure of using an iterator and
6
+ // This module helps you get familiar with the structure of using an iterator and
7
7
// how to go through elements within an iterable collection.
8
- //
8
+ //
9
9
// Execute `rustlings hint iterators1` for hints :D
10
10
11
11
// I AM NOT DONE
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ impl Package {
31
31
}
32
32
33
33
fn get_fees ( & self , cents_per_gram : i32 ) -> ??? {
34
- // Something goes here...
34
+ // Something goes here...
35
35
}
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments