Merge pull request #25964 from nh2/nixos-manual-module-addCheck-order
manual: Fix `addCheck` example having arguments in wrong order.
This commit is contained in:
commit
06e85fdd37
@ -282,7 +282,7 @@ config.mod.two = { foo = 2; bar = "two"; };</screen></example>
|
||||
<screen>
|
||||
byte = mkOption {
|
||||
description = "An integer between 0 and 255.";
|
||||
type = addCheck (x: x >= 0 && x <= 255) types.int;
|
||||
type = addCheck types.int (x: x >= 0 && x <= 255);
|
||||
};</screen></example>
|
||||
|
||||
<example xml:id='ex-extending-type-check-2'><title>Overriding a type
|
||||
|
Loading…
x
Reference in New Issue
Block a user