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,8 +170,8 @@ static void prim_fromTOML(EvalState & state, const PosIdx pos, Value ** args, Va
|
|||
}
|
||||
}
|
||||
|
||||
static RegisterPrimOp primop_fromTOML(
|
||||
{.name = "fromTOML",
|
||||
static RegisterPrimOp primop_fromTOML({
|
||||
.name = "fromTOML",
|
||||
.args = {"e"},
|
||||
.doc = R"(
|
||||
Convert a TOML string to a Nix value. For example,
|
||||
|
|
@ -187,6 +187,7 @@ static RegisterPrimOp primop_fromTOML(
|
|||
|
||||
returns the value `{ s = "a"; table = { y = 2; }; x = 1; }`.
|
||||
)",
|
||||
.fun = prim_fromTOML});
|
||||
.fun = prim_fromTOML,
|
||||
});
|
||||
|
||||
} // namespace nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue