easier hello world

This commit is contained in:
Anton-4 2024-12-18 16:19:27 +01:00 committed by GitHub
parent 1285a24565
commit e0d22a2768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 5 deletions

View file

@ -41,9 +41,10 @@ which includes the Roc compiler and some helpful utilities.
sudo dnf install glibc-devel binutils
```
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
1. Download and run hello world:
```sh
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
roc main.roc
```

View file

@ -33,9 +33,10 @@ which includes the Roc compiler and some helpful utilities.
1. Check everything worked by executing `roc version`
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
1. Download and run hello world:
```sh
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
roc main.roc
```

View file

@ -26,9 +26,10 @@ which includes the Roc compiler and some helpful utilities.
1. Check everything worked by executing `roc version`
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
1. Download and run hello world:
```sh
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
roc main.roc
```

View file

@ -4,10 +4,11 @@
1. [Build Roc from source](https://github.com/roc-lang/roc/blob/main/BUILDING_FROM_SOURCE.md)
1. Run [hello world](https://github.com/roc-lang/examples/blob/main/examples/HelloWorld/main.roc):
1. Download and run hello world:
```sh
roc hello.roc
curl -OL https://raw.githubusercontent.com/roc-lang/examples/refs/heads/main/examples/HelloWorld/main.roc
roc main.roc
```
## Next Steps