doc: fix typo

main
Sandro Jäckel 3 years ago
parent 19b87ec97d
commit dded550fcd
No known key found for this signature in database
GPG Key ID: B1763F8651144063
  1. 2
      doc/contributing/coding-conventions.chapter.md

@ -181,7 +181,7 @@
rev = "${version}";
```
- Filling lists condionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.
- Building lists conditionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.
```nix
buildInputs = lib.optional stdenv.isDarwin iconv;

Loading…
Cancel
Save