docs(nix-1p): fix formatting of operator table

Change-Id: I19a10114bf4a816e3573eb86df208b68548884a1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9598
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
Vincent Ambo 2023-10-10 13:47:30 +03:00 committed by clbot
parent 17d6f4320f
commit 0ad059ddfe

View file

@ -113,8 +113,10 @@ rec { a = 15; b = a * 2; }
Nix has several operators, most of which are unsurprising:
Make sure to understand the `//`-operator, as it is used quite a lot and is
probably the least familiar one.
| Syntax | Description |
|----------------------|-----------------------------------------------------------------------------|
|---------------------------|-----------------------------------------------------------------------------|
| `+`, `-`, `*`, `/` | Numerical operations |
| `+` | String concatenation |
| `++` | List concatenation |
@ -128,8 +130,6 @@ Nix has several operators, most of which are unsurprising:
| `set ? attribute` | Test whether attribute set contains an attribute |
| `left // right` | Merge `left` & `right` attribute sets, with the right set taking precedence |
Make sure to understand the `//`-operator, as it is used quite a lot and is
probably the least familiar one.
## Variable bindings