add syntax highlighting in README

This commit is contained in:
Bernardo Ferrari 2020-03-16 22:31:04 -03:00 committed by GitHub
parent 1d4f4922ba
commit 6e44732dda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ This tool is called DDH for two very good reasons.
DDH is usable both as a library and as a stand alone CLI tool and aims to be simple to use in both cases.
## Library example
```
```rust
let (files, errors): (Vec<Fileinfo>, Vec<(_, _)>) = ddh::deduplicate_dirs(dirs);
let (shared, unique): (Vec<&Fileinfo>, Vec<&Fileinfo>) = files
.par_iter()