mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Format .nix files
... with nixfmt (rfc style)
This commit is contained in:
parent
ba6425a7d0
commit
96e550efc5
266 changed files with 7460 additions and 5138 deletions
|
@ -10,12 +10,31 @@ rec {
|
|||
|
||||
c = "foo" + "bar";
|
||||
|
||||
f = {z, x, y}: if y then x else z;
|
||||
f =
|
||||
{
|
||||
z,
|
||||
x,
|
||||
y,
|
||||
}:
|
||||
if y then x else z;
|
||||
|
||||
id = x: x;
|
||||
|
||||
at = args@{x, y, z}: x;
|
||||
at =
|
||||
args@{
|
||||
x,
|
||||
y,
|
||||
z,
|
||||
}:
|
||||
x;
|
||||
|
||||
ellipsis = {x, y, z, ...}: x;
|
||||
ellipsis =
|
||||
{
|
||||
x,
|
||||
y,
|
||||
z,
|
||||
...
|
||||
}:
|
||||
x;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue