about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2024-02-29 16:07:03 +0100
committerGitHub <noreply@github.com>2024-02-29 16:07:03 +0100
commit28256b81a193512d99308b8b06e34692e1f52e6f (patch)
treefc9d714e6684a98b3117f0c7b4b763f4d12b81a8 /lib
parente264d7b1df7997564069834cf5dc39b38be83edd (diff)
parentbaae71c82109f67632911287bbc36252fe43eab1 (diff)
Merge pull request #292340 from DanielSidhion/fix-fixed-points-doc
lib.fixedPoints: fix rendering of docs for `extends`
Diffstat (limited to 'lib')
-rw-r--r--lib/fixed-points.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/fixed-points.nix b/lib/fixed-points.nix
index 3370b55a4ab9a..3bd18fdd2a5a9 100644
--- a/lib/fixed-points.nix
+++ b/lib/fixed-points.nix
@@ -145,6 +145,12 @@ rec {
     in fix g
     ```
 
+    :::{.note}
+    The argument to the given fixed-point function after applying an overlay will *not* refer to its own return value, but rather to the value after evaluating the overlay function.
+
+    The given fixed-point function is called with a separate argument than if it was evaluated with `lib.fix`.
+    :::
+
     :::{.example}
 
     # Extend a fixed-point function with an overlay
@@ -230,13 +236,6 @@ rec {
 
       fix (extends (final: prev: { c = final.a + final.b; }) f)
       => { a = 1; b = 3; c = 4; }
-
-    :::{.note}
-    The argument to the given fixed-point function after applying an overlay will *not* refer to its own return value, but rather to the value after evaluating the overlay function.
-
-    The given fixed-point function is called with a separate argument than if it was evaluated with `lib.fix`.
-    The new argument
-    :::
   */
   extends =
     # The overlay to apply to the fixed-point function