From 0ad059ddfed1482713b1f3a73eedfcbb4a23a692 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 10 Oct 2023 13:47:30 +0300 Subject: docs(nix-1p): fix formatting of operator table Change-Id: I19a10114bf4a816e3573eb86df208b68548884a1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9598 Autosubmit: tazjin Tested-by: BuildkiteCI Reviewed-by: flokli --- nix/nix-1p/README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'nix/nix-1p') diff --git a/nix/nix-1p/README.md b/nix/nix-1p/README.md index d7db1917747b..72297a555127 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` | -| || | Logical `OR` | -| `e1 -> e2` | Logical implication (i.e. !e1 || e2) | -| `!` | 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` | +| || | Logical `OR` | +| `e1 -> e2` | Logical implication (i.e. !e1 || e2) | +| `!` | 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 -- cgit 1.4.1