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
main
Skyler 2 years ago committed by GitHub
parent d1710ae753
commit d61bc96d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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

Loading…
Cancel
Save