mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Update Example.roc
This commit is contained in:
parent
f6096d629d
commit
77d9a13b10
2 changed files with 1 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
||||||
Example exposes [ program ]
|
|
||||||
|
|
||||||
program =
|
program =
|
||||||
after (echo "What is your first name?"), ({}) ->
|
after (echo "What is your first name?"), ({}) ->
|
||||||
after readInput, (firstName) ->
|
after readInput, (firstName) ->
|
||||||
|
|
|
@ -9,7 +9,7 @@ use roc::parse;
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
||||||
fn main() -> std::io::Result<()> {
|
fn main() -> std::io::Result<()> {
|
||||||
let mut file = File::open("test.roc")?;
|
let mut file = File::open("Example.roc")?;
|
||||||
let mut contents = String::new();
|
let mut contents = String::new();
|
||||||
|
|
||||||
file.read_to_string(&mut contents)?;
|
file.read_to_string(&mut contents)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue