Skip to content

Commit 7bfd8b0

Browse files
committed
Improve formatting of primop_fromTOML
Trailing comma helps a lot.
1 parent 3bf8c76 commit 7bfd8b0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/libexpr/primops/fromTOML.cc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ static void prim_fromTOML(EvalState & state, const PosIdx pos, Value ** args, Va
170170
}
171171
}
172172

173-
static RegisterPrimOp primop_fromTOML(
174-
{.name = "fromTOML",
175-
.args = {"e"},
176-
.doc = R"(
173+
static RegisterPrimOp primop_fromTOML({
174+
.name = "fromTOML",
175+
.args = {"e"},
176+
.doc = R"(
177177
Convert a TOML string to a Nix value. For example,
178178
179179
```nix
@@ -187,6 +187,7 @@ static RegisterPrimOp primop_fromTOML(
187187
188188
returns the value `{ s = "a"; table = { y = 2; }; x = 1; }`.
189189
)",
190-
.fun = prim_fromTOML});
190+
.fun = prim_fromTOML,
191+
});
191192

192193
} // namespace nix

0 commit comments

Comments
 (0)