Skip to content

Commit a9e1509

Browse files
committed
update
1 parent 6178b79 commit a9e1509

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

exercises/generics/generics2.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
// Execute `rustlings hint generics2` or use the `hint` watch subcommand for a
77
// hint.
88

9-
// I AM NOT DONE
109

11-
struct Wrapper {
12-
value: u32,
10+
struct Wrapper<T> {
11+
value: T,
1312
}
1413

15-
impl Wrapper {
16-
pub fn new(value: u32) -> Self {
14+
impl<T> Wrapper<T> {
15+
pub fn new(value: T) -> Self {
1716
Wrapper { value }
1817
}
1918
}

0 commit comments

Comments
 (0)