mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Merge pull request #12760 from Prince213/docs-unsafeGetAttrPos
docs: document unsafeGetAttrPos
This commit is contained in:
commit
6309bbb426
1 changed files with 6 additions and 0 deletions
|
@ -2775,7 +2775,13 @@ static void prim_unsafeGetAttrPos(EvalState & state, const PosIdx pos, Value * *
|
|||
|
||||
static RegisterPrimOp primop_unsafeGetAttrPos(PrimOp {
|
||||
.name = "__unsafeGetAttrPos",
|
||||
.args = {"s", "set"},
|
||||
.arity = 2,
|
||||
.doc = R"(
|
||||
`unsafeGetAttrPos` returns the position of the attribute named *s*
|
||||
from *set*. This is used by Nixpkgs to provide location information
|
||||
in error messages.
|
||||
)",
|
||||
.fun = prim_unsafeGetAttrPos,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue