diff --git a/nixos/doc/manual/development/option-types.xml b/nixos/doc/manual/development/option-types.xml
index 8e6ac53ad480..741e763c295c 100644
--- a/nixos/doc/manual/development/option-types.xml
+++ b/nixos/doc/manual/development/option-types.xml
@@ -282,7 +282,7 @@ config.mod.two = { foo = 2; bar = "two"; };
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);
};
Overriding a type