lib/types: Fix functionTo description

This commit is contained in:
Silvan Mosberger 2022-03-01 02:04:35 +01:00
parent aa58db21c6
commit fb023114ed

View file

@ -510,7 +510,7 @@ rec {
functionTo = elemType: mkOptionType { functionTo = elemType: mkOptionType {
name = "functionTo"; name = "functionTo";
description = "function that evaluates to a(n) ${elemType.name}"; description = "function that evaluates to a(n) ${elemType.description}";
check = isFunction; check = isFunction;
merge = loc: defs: merge = loc: defs:
fnArgs: (mergeDefinitions (loc ++ [ "[function body]" ]) elemType (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs)).mergedValue; fnArgs: (mergeDefinitions (loc ++ [ "[function body]" ]) elemType (map (fn: { inherit (fn) file; value = fn.value fnArgs; }) defs)).mergedValue;