mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
Improve formatting of primop_fromTOML
Trailing comma helps a lot.
This commit is contained in:
parent
a786c9eedb
commit
3a76ba2e87
1 changed files with 6 additions and 5 deletions
|
|
@ -170,10 +170,10 @@ static void prim_fromTOML(EvalState & state, const PosIdx pos, Value ** args, Va
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static RegisterPrimOp primop_fromTOML(
|
static RegisterPrimOp primop_fromTOML({
|
||||||
{.name = "fromTOML",
|
.name = "fromTOML",
|
||||||
.args = {"e"},
|
.args = {"e"},
|
||||||
.doc = R"(
|
.doc = R"(
|
||||||
Convert a TOML string to a Nix value. For example,
|
Convert a TOML string to a Nix value. For example,
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
|
|
@ -187,6 +187,7 @@ static RegisterPrimOp primop_fromTOML(
|
||||||
|
|
||||||
returns the value `{ s = "a"; table = { y = 2; }; x = 1; }`.
|
returns the value `{ s = "a"; table = { y = 2; }; x = 1; }`.
|
||||||
)",
|
)",
|
||||||
.fun = prim_fromTOML});
|
.fun = prim_fromTOML,
|
||||||
|
});
|
||||||
|
|
||||||
} // namespace nix
|
} // namespace nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue