about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2024-01-28 16:25:36 +0100
committerRobert Hensing <robert@roberthensing.nl>2024-02-11 18:45:16 +0100
commit6949bc21ce1de068bc1b21e273d15620c0e5770e (patch)
tree9bdcf54d522c5c3de32c8542ea2a19f76a784faf
parent1ad30772ea4feca0b597446e102fb323c89c41a0 (diff)
doc/option-types: Move nullOr to Union types
-rw-r--r--nixos/doc/manual/development/option-types.section.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/doc/manual/development/option-types.section.md b/nixos/doc/manual/development/option-types.section.md
index f8b25d90088db..cf9422291d9fb 100644
--- a/nixos/doc/manual/development/option-types.section.md
+++ b/nixos/doc/manual/development/option-types.section.md
@@ -299,6 +299,11 @@ If some values are instances of more than one of the types, it is not possible t
     `with types; oneOf [ int str bool ]`. Multiple definitions cannot be
     merged.
 
+`types.nullOr` *`t`*
+
+:   `null` or type *`t`*. Multiple definitions are merged according to
+    type *`t`*.
+
 
 ## Sum types {#sec-option-types-sums}
 
@@ -353,11 +358,6 @@ Composed types are types that take a type as parameter. `listOf
     returned instead for the same `mkIf false` definition.
     :::
 
-`types.nullOr` *`t`*
-
-:   `null` or type *`t`*. Multiple definitions are merged according to
-    type *`t`*.
-
 `types.uniq` *`t`*
 
 :   Ensures that type *`t`* cannot be merged. It is used to ensure option