generated from PlexSheep/rs-base
read numbers from stdin #15
|
@ -26,8 +26,8 @@ fn main() {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let whole = whole.replace('\n', "");
|
let split = whole.split_whitespace();
|
||||||
|
|||||||
for s in whole.split(' ') {
|
for s in split {
|
||||||
args.push(s.to_string());
|
args.push(s.to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
split here instead of removing newlines