about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2023-10-10T10·47+0300
committerclbot <clbot@tvl.fyi>2023-10-10T11·18+0000
commit0ad059ddfed1482713b1f3a73eedfcbb4a23a692 (patch)
tree83475b21c78755f4a37b1307af5e954679c6048a /nix
parent17d6f4320f1dddf2470bb8a4e6757c9445d4884e (diff)
docs(nix-1p): fix formatting of operator table r/6764
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>
Diffstat (limited to 'nix')
-rw-r--r--nix/nix-1p/README.md30
1 files changed, 15 insertions, 15 deletions
diff --git a/nix/nix-1p/README.md b/nix/nix-1p/README.md
index d7db191774..72297a5551 100644
--- a/nix/nix-1p/README.md
+++ b/nix/nix-1p/README.md
@@ -113,23 +113,23 @@ rec { a = 15; b = a * 2; }
 
 Nix has several operators, most of which are unsurprising:
 
-| Syntax               | Description                                                                 |
-|----------------------|-----------------------------------------------------------------------------|
-| `+`, `-`, `*`, `/`   | Numerical operations                                                        |
-| `+`                  | String concatenation                                                        |
-| `++`                 | List concatenation                                                          |
-| `==`                 | Equality                                                                    |
-| `>`, `>=`, `<`, `<=` | Ordering comparators                                                        |
-| `&&`                 | Logical `AND`                                                               |
-| <code>&vert;&vert;</code> | Logical `OR`                                                           |
-| `e1 -> e2`           | Logical implication (i.e. <code>!e1 &vert;&vert; e2</code>)                 |
-| `!`                  | Boolean negation                                                            |
-| `set.attr`           | Access attribute `attr` in attribute set `set`                              |
-| `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.
+| Syntax                    | Description                                                                 |
+|---------------------------|-----------------------------------------------------------------------------|
+| `+`, `-`, `*`, `/`        | Numerical operations                                                        |
+| `+`                       | String concatenation                                                        |
+| `++`                      | List concatenation                                                          |
+| `==`                      | Equality                                                                    |
+| `>`, `>=`, `<`, `<=`      | Ordering comparators                                                        |
+| `&&`                      | Logical `AND`                                                               |
+| <code>&vert;&vert;</code> | Logical `OR`                                                                |
+| `e1 -> e2`                | Logical implication (i.e. <code>!e1 &vert;&vert; e2</code>)                 |
+| `!`                       | Boolean negation                                                            |
+| `set.attr`                | Access attribute `attr` in attribute set `set`                              |
+| `set ? attribute`         | Test whether attribute set contains an attribute                            |
+| `left // right`           | Merge `left` & `right` attribute sets, with the right set taking precedence |
+
 
 ## Variable bindings