Display the new syntax in the README.md

This commit is contained in:
Sam Vervaeck 2024-07-10 17:41:08 +02:00
parent 2cdad77b0d
commit eef984f5a9
Signed by: samvv
SSH key fingerprint: SHA256:dIg0ywU1OP+ZYifrYxy8c5esO72cIKB+4/9wkZj1VaY

View file

@ -7,8 +7,8 @@ Bolt
💬 Got some questions or feedback? Just open an issue and we'll be glad to respond!
```ocaml
let fac = match.
```rust
fn fac = match.
0 | 1 => 1
k => k * fac (k-1)
```
@ -50,7 +50,7 @@ print f"Hey look! {spike.name} and {sadie.name} are playing together!"
Records are _extensible_, meaning that you can do things like this:
```
let greet { name, .. } = print f"Hello, {name}!"
fn greet { name, .. } = print f"Hello, {name}!"
greet sadie
greet spike
@ -79,7 +79,7 @@ _Note that this example is very experimental._
```
import "html" ( Html )
let app : Html.
fn app : Html.
let user = perform get_state