Skip to content

Commit 5a8f2b6

Browse files
authored
Merge pull request #1117 from Lioness100/refactor/todo
refactor(box1): prefer todo! over unimplemented!
2 parents 3963559 + c5ecc37 commit 5a8f2b6

File tree

1 file changed

+3
-3
lines changed
  • exercises/standard_library_types

1 file changed

+3
-3
lines changed

exercises/standard_library_types/box1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// elements: the value of the current item and the next item. The last item is a value called `Nil`.
1111
//
1212
// Step 1: use a `Box` in the enum definition to make the code compile
13-
// Step 2: create both empty and non-empty cons lists by replacing `unimplemented!()`
13+
// Step 2: create both empty and non-empty cons lists by replacing `todo!()`
1414
//
1515
// Note: the tests should not be changed
1616
//
@@ -33,11 +33,11 @@ fn main() {
3333
}
3434

3535
pub fn create_empty_list() -> List {
36-
unimplemented!()
36+
todo!()
3737
}
3838

3939
pub fn create_non_empty_list() -> List {
40-
unimplemented!()
40+
todo!()
4141
}
4242

4343
#[cfg(test)]

0 commit comments

Comments
 (0)