1
1
Fork 0
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:
John Ericson 2025-11-10 01:30:07 -05:00
parent a786c9eedb
commit 3a76ba2e87

View file

@ -170,8 +170,8 @@ 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,
@ -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