1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 14:32:42 +01:00

Improve formatting of primop_fromTOML

Trailing comma helps a lot.
This commit is contained in:
John Ericson 2025-11-10 01:30:07 -05:00
parent a786c9eedb
commit 3a76ba2e87

View file

@ -170,10 +170,10 @@ static void prim_fromTOML(EvalState & state, const PosIdx pos, Value ** args, Va
}
}
static RegisterPrimOp primop_fromTOML(
{.name = "fromTOML",
.args = {"e"},
.doc = R"(
static RegisterPrimOp primop_fromTOML({
.name = "fromTOML",
.args = {"e"},
.doc = R"(
Convert a TOML string to a Nix value. For example,
```nix
@ -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