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:
parent
17d6f4320f
commit
0ad059ddfe
1 changed files with 15 additions and 15 deletions
|
@ -113,8 +113,10 @@ rec { a = 15; b = a * 2; }
|
||||||
|
|
||||||
Nix has several operators, most of which are unsurprising:
|
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 |
|
| Syntax | Description |
|
||||||
|----------------------|-----------------------------------------------------------------------------|
|
|---------------------------|-----------------------------------------------------------------------------|
|
||||||
| `+`, `-`, `*`, `/` | Numerical operations |
|
| `+`, `-`, `*`, `/` | Numerical operations |
|
||||||
| `+` | String concatenation |
|
| `+` | String concatenation |
|
||||||
| `++` | List 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 |
|
| `set ? attribute` | Test whether attribute set contains an attribute |
|
||||||
| `left // right` | Merge `left` & `right` attribute sets, with the right set taking precedence |
|
| `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
|
## Variable bindings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue