Un-renamed trim and substr functions.
This commit is contained in:
parent
ee2f3d9673
commit
0a47cd5ef1
15 changed files with 80 additions and 80 deletions
|
|
@ -68,7 +68,7 @@ pub impl Sudoku {
|
|||
let mut g = vec::from_fn(10u, { |_i| ~[0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8, 0u8] });
|
||||
while !reader.eof() {
|
||||
let line = reader.read_line();
|
||||
let comps = str::split_char(line.trim_DBGBRWD(), ',');
|
||||
let comps = str::split_char(line.trim(), ',');
|
||||
if vec::len(comps) == 3u {
|
||||
let row = uint::from_str(comps[0]).get() as u8;
|
||||
let col = uint::from_str(comps[1]).get() as u8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue