forked from mirrors/nixpkgs
Merge pull request #162283 from Infinisil/functionTo.description
lib/types: Fix functionTo description
This commit is contained in:
commit
6bcfd61109
|
@ -514,7 +514,7 @@ rec {
|
|||
|
||||
functionTo = elemType: mkOptionType {
|
||||
name = "functionTo";
|
||||
description = "function that evaluates to a(n) ${elemType.name}";
|
||||
description = "function that evaluates to a(n) ${elemType.description}";
|
||||
check = isFunction;
|
||||
merge = loc: defs:
|
||||
fnArgs: (mergeDefinitions (loc ++ [ "[function body]" ]) elemType (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs)).mergedValue;
|
||||
|
|
Loading…
Reference in a new issue