update primop call
This commit is contained in:
parent
0e5218513e
commit
dbfc2ba4e1
2 changed files with 5 additions and 5 deletions
4
scope.cc
4
scope.cc
|
|
@ -40,7 +40,7 @@ static void prim_scope(EvalState & state, const PosIdx pos, Value ** args, Value
|
|||
v = *inner;
|
||||
}
|
||||
|
||||
static RegisterPrimOp rp({
|
||||
static RegisterPrimOp rp(PrimOp{
|
||||
.name = "scope",
|
||||
.args = {"path", "value"},
|
||||
.doc = R"(
|
||||
|
|
@ -48,5 +48,5 @@ static RegisterPrimOp rp({
|
|||
|
||||
Example: `scope "a.b.c" 42` evaluates to `{ a = { b = { c = 42; }; }; }`.
|
||||
)",
|
||||
.fun = prim_scope,
|
||||
.impl = prim_scope,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue