summaryrefslogtreecommitdiffstats
path: root/lib/trivial.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/trivial.nix')
-rw-r--r--lib/trivial.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/trivial.nix b/lib/trivial.nix
index 735aa55e0dce..cc9665a61316 100644
--- a/lib/trivial.nix
+++ b/lib/trivial.nix
@@ -56,6 +56,8 @@ rec {
# nix-repl> fix f
# { bar = "bar"; foo = "foo"; foobar = "foobar"; }
#
+ # Type: fix :: (a -> a) -> a
+ #
# See https://en.wikipedia.org/wiki/Fixed-point_combinator for further
# details.
fix = f: let x = f x; in x;