diff options
author | Skyler <skyler3665@gmail.com> | 2022-08-20 23:58:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 23:58:57 +0100 |
commit | d61bc96d16ca288c69b798b8e31eca64050098e3 (patch) | |
tree | 349df53dafded7ba61fa9468a1be99e0f3df44ff /lib | |
parent | d1710ae7536662b01bfaf691c5f12f27da3d63af (diff) | |
download | nixlib-d61bc96d16ca288c69b798b8e31eca64050098e3.tar nixlib-d61bc96d16ca288c69b798b8e31eca64050098e3.tar.gz nixlib-d61bc96d16ca288c69b798b8e31eca64050098e3.tar.bz2 nixlib-d61bc96d16ca288c69b798b8e31eca64050098e3.tar.lz nixlib-d61bc96d16ca288c69b798b8e31eca64050098e3.tar.xz nixlib-d61bc96d16ca288c69b798b8e31eca64050098e3.tar.zst nixlib-d61bc96d16ca288c69b798b8e31eca64050098e3.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lists.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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 |