fix table in do while pattern

This commit is contained in:
Daniel Bulant 2024-01-06 22:22:36 +01:00 committed by GitHub
parent 34245a1bef
commit c17d143621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -519,9 +519,9 @@ You can read more about them in the rust book - for a JS dev, the following is e
| js | rust |
| -- | ---- |
| `() => {}{:js}` | `|| {}{:rust}` |
| `() => 1{:js}` | `|| 1{:rust}` |
| `a => a{:js}` | `|a| a{:rust}`|
| `() => {}{:js}` | `\|\| {}{:rust}` |
| `() => 1{:js}` | `\|\| 1{:rust}` |
| `a => a{:js}` | `\|a\| a{:rust}`|
Please not that I don't recommend using this syntax as it's kinda confusing. Use `loop{:rust}` with `if{:rust}` instead.