Fixes filterCargoSources example in documentation (#165)

This commit is contained in:
Robin Bozan 2022-11-17 03:40:40 +01:00 committed by GitHub
parent 074825a9e8
commit cc4865cd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -710,7 +710,7 @@ Note that it is possible to compose source filters, especially if
```nix
let
# Only keeps markdown files
markdownFilter = path: _type: match ".*md$" path;
markdownFilter = path: _type: builtins.match ".*md$" path != null;
markdownOrCargo = path: type:
(markdownFilter path type) || (lib.filterCargoSources path type);
in