diff --git a/examples/BasicDict/README.md b/examples/BasicDict/README.md index 4fb2745..40bba02 100644 --- a/examples/BasicDict/README.md +++ b/examples/BasicDict/README.md @@ -29,7 +29,7 @@ The type of the key must implement the `Hash` and `Eq` abilities. Nearly all Roc builtin types (`Str`, `Bool`, `List`, `Int *`,...) implement these. If you are defining an [opaque type](https://www.roc-lang.org/tutorial#opaque-types), adding `implements [Hash, Eq]` is all you need to be able to use it as a key: -``` +```roc Username := Str implements [Hash, Eq] ``` diff --git a/examples/DotNetPlatform/README.md b/examples/DotNetPlatform/README.md index 39a6490..89b434c 100644 --- a/examples/DotNetPlatform/README.md +++ b/examples/DotNetPlatform/README.md @@ -10,17 +10,17 @@ file:main.roc ``` platform/main.roc: -``` +```roc file:platform/main.roc ``` platform/DotNetRocPlatform.csproj: -``` +```xml file:platform/DotNetRocPlatform.csproj ``` platform/Program.cs: -``` +```csharp file:platform/Program.cs ``` @@ -29,8 +29,8 @@ file:platform/Program.cs 1. Build the roc app that is using the dotnet platform: ```cli -cd examples/DotNetPlatform/ -roc build main.roc --lib --output ./platform/interop +$ cd examples/DotNetPlatform/ +$ roc build main.roc --lib --output ./platform/interop ``` > _use `arch -arm64` if you are running in a Apple Silicon mac._ @@ -38,8 +38,8 @@ This will produce a shared library file that we'll be able to import from a .NET To run: ```cli -cd platform -dotnet run +$ cd platform +$ dotnet run ``` This should print "Hello from .NET". @@ -50,11 +50,11 @@ If you want to build a binary for the app using native AOT: 1. Publish the dotnet app ```cli -dotnet publish -c Release +$ dotnet publish -c Release ``` > _use `arch -arm64` if you are running in a Apple Silicon mac._ 2. `cd` into the into the `publish` folder and run the binary: ```cli -./DotNetRocPlatform +$ ./DotNetRocPlatform ``` diff --git a/examples/GoPlatform/README.md b/examples/GoPlatform/README.md index 22f6a12..e809384 100644 --- a/examples/GoPlatform/README.md +++ b/examples/GoPlatform/README.md @@ -10,7 +10,7 @@ file:main.roc ``` platform/main.roc: -``` +```roc file:platform/main.roc ``` @@ -25,7 +25,7 @@ file:platform/main.go ``` platform/host.h: -``` +```c file:platform/host.h ``` @@ -38,9 +38,9 @@ For now, the compiled Roc binary and the go binary have to be manualy [linked](h Build steps: ```bash -cd examples/GoPlatform -roc build --no-link main.roc -go build platform/main.go +$ cd examples/GoPlatform +$ roc build --no-link main.roc +$ go build platform/main.go ``` Run the produced executable with `./main`. diff --git a/examples/IngestFiles/README.md b/examples/IngestFiles/README.md index b5254c8..fba0860 100644 --- a/examples/IngestFiles/README.md +++ b/examples/IngestFiles/README.md @@ -1,6 +1,6 @@ # Ingest Files -Statically importing files as a `Str` or a `List U8`. +Statically importing files as a `Str` or a `List U8`: ```roc imports [