update primop call

This commit is contained in:
atagen 2026-04-20 16:09:26 +10:00
parent 0e5218513e
commit dbfc2ba4e1
2 changed files with 5 additions and 5 deletions

View file

@ -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,
});