mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Trim input from stdin
This commit is contained in:
parent
9fc30fbbc4
commit
7165f55d6e
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ fn process_task(evaluated: Evaluated) -> std::io::Result<()> {
|
||||||
|
|
||||||
io::stdin().read_line(&mut input)?;
|
io::stdin().read_line(&mut input)?;
|
||||||
|
|
||||||
process_task(call(callback, vec![Expr::Str(input)]))
|
process_task(call(callback, vec![Expr::Str(input.trim().to_string())]))
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
display_val(ApplyVariant(name, Some(vals)));
|
display_val(ApplyVariant(name, Some(vals)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue