mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
Reformat examples/README
This commit is contained in:
parent
9d1dcc15c8
commit
8fbf672f1b
@ -1,13 +1,20 @@
|
||||
|
||||
# Examples
|
||||
|
||||
Took a look around in the `examples` folder, `examples/benchmarks` contains some larger examples.
|
||||
Took a look around in this folder; `examples/benchmarks/` contains some larger examples.
|
||||
|
||||
Run examples as follows:
|
||||
1. Navigate to `/examples`
|
||||
2. Run with:
|
||||
```
|
||||
cargo run hello-world/Hello.roc
|
||||
```
|
||||
|
||||
1. Navigate to the examples directory
|
||||
|
||||
```bash
|
||||
cd examples
|
||||
```
|
||||
|
||||
2. Run "Hello, World!" example
|
||||
|
||||
```bash
|
||||
cargo run hello-world/Hello.roc
|
||||
```
|
||||
|
||||
Some examples like `examples/benchmarks/NQueens.roc` require input after running.
|
||||
For NQueens, input 10 in the terminal and press enter.
|
||||
|
Loading…
Reference in New Issue
Block a user