Przeglądaj źródła

fix prints to reflect what's actually being done.

a macro could do this, i'm sure...
Lucas Stadler 11 lat temu
rodzic
commit
8570dbe519
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      rust/pointers.rs

+ 2 - 2
rust/pointers.rs

@ -47,7 +47,7 @@ mod list_with_box {
47 47
        let l: List<int> = cons(1, cons(2, Nil));
48 48
49 49
        println!("l = {}", l);
50
        println!("cons(3, box l) = {:?}", cons(3, l));
50
        println!("cons(3, l) = {:?}", cons(3, l));
51 51
    }
52 52
}
53 53
@ -74,7 +74,7 @@ mod list_with_ref {
74 74
        let l: &List<int> = &cons(1, nil);
75 75
76 76
        println!("l = {:?}", l);
77
        println!("lwr_cons_with_ref(1, l) = {:?}", cons(1, l));
77
        println!("cons(1, l) = {:?}", cons(1, l));
78 78
    }
79 79
}
80 80