Merge pull request #170561 from klemensn/types-description

lib/types: Drop misleading plural from type descriptions

authored by Silvan Mosberger and committed by GitHub e06f66e7 3e789af2

+4 -4
+1 -1
lib/tests/modules.sh
··· 313 313 314 314 ## Option collision 315 315 checkConfigError \ 316 - 'The option .set. in module .*/declare-set.nix. would be a parent of the following options, but its type .attribute set of signed integers. does not support nested options.\n\s*- option[(]s[)] with prefix .set.enable. in module .*/declare-enable-nested.nix.' \ 316 + 'The option .set. in module .*/declare-set.nix. would be a parent of the following options, but its type .attribute set of signed integer. does not support nested options.\n\s*- option[(]s[)] with prefix .set.enable. in module .*/declare-enable-nested.nix.' \ 317 317 config.set \ 318 318 ./declare-set.nix ./declare-enable-nested.nix 319 319
+3 -3
lib/types.nix
··· 397 397 398 398 listOf = elemType: mkOptionType rec { 399 399 name = "listOf"; 400 - description = "list of ${elemType.description}s"; 400 + description = "list of ${elemType.description}"; 401 401 check = isList; 402 402 merge = loc: defs: 403 403 map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def: ··· 426 426 427 427 attrsOf = elemType: mkOptionType rec { 428 428 name = "attrsOf"; 429 - description = "attribute set of ${elemType.description}s"; 429 + description = "attribute set of ${elemType.description}"; 430 430 check = isAttrs; 431 431 merge = loc: defs: 432 432 mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: ··· 449 449 # error that it's not defined. Use only if conditional definitions don't make sense. 450 450 lazyAttrsOf = elemType: mkOptionType rec { 451 451 name = "lazyAttrsOf"; 452 - description = "lazy attribute set of ${elemType.description}s"; 452 + description = "lazy attribute set of ${elemType.description}"; 453 453 check = isAttrs; 454 454 merge = loc: defs: 455 455 zipAttrsWith (name: defs: