From d61bc96d16ca288c69b798b8e31eca64050098e3 Mon Sep 17 00:00:00 2001 From: Skyler Date: Sat, 20 Aug 2022 23:58:57 +0100 Subject: Fix a typo in the lib.foldr docstring - This quote mark should be a backtick - Using a quote mark instead of a backtick breaks formatting when rendering the docs --- lib/lists.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/lists.nix b/lib/lists.nix index 36056e18065e..602b13cf69cf 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -36,7 +36,7 @@ rec { forEach = xs: f: map f xs; /* “right fold” a binary function `op` between successive elements of - `list` with `nul' as the starting value, i.e., + `list` with `nul` as the starting value, i.e., `foldr op nul [x_1 x_2 ... x_n] == op x_1 (op x_2 ... (op x_n nul))`. Type: foldr :: (a -> b -> b) -> b -> [a] -> b -- cgit v1.2.3