Fix test/run-pass/issue-2904
This commit is contained in:
parent
c6605168a1
commit
26a8fe3553
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
/// Map representation
|
||||
|
||||
use io::ReaderUtil;
|
||||
|
||||
extern mod std;
|
||||
|
||||
enum square {
|
||||
|
@ -50,7 +52,7 @@ fn read_board_grid<rdr: Owned io::Reader>(+in: rdr) -> ~[~[square]] {
|
|||
let mut grid = ~[];
|
||||
for in.each_line |line| {
|
||||
let mut row = ~[];
|
||||
for line.each_char |c| {
|
||||
for str::each_char(line) |c| {
|
||||
vec::push(row, square_from_char(c))
|
||||
}
|
||||
vec::push(grid, row)
|
||||
|
|
Loading…
Add table
Reference in a new issue