diff --git a/src/ch15-01-box.md b/src/ch15-01-box.md index 272bf89..04b88ea 100644 --- a/src/ch15-01-box.md +++ b/src/ch15-01-box.md @@ -71,7 +71,7 @@ enum List { 文件名: src/main.rs ```rust,ignore -use List::{Cons, Nil}; +use crate::List::{Cons, Nil}; fn main() { let list = Cons(1, Cons(2, Cons(3, Nil))); @@ -145,7 +145,7 @@ enum List { Nil, } -use List::{Cons, Nil}; +use crate::List::{Cons, Nil}; fn main() { let list = Cons(1,