修正ch15-01-box的代码

This commit is contained in:
readlnh 2019-02-20 12:44:58 +08:00
parent 195d8945f1
commit 883d67216e

View File

@ -71,7 +71,7 @@ enum List {
<span class="filename">文件名: src/main.rs</span>
```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,