We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94cffee commit 2dcce97Copy full SHA for 2dcce97
crates/mtree2/README.md
@@ -16,7 +16,7 @@ A library for iterating through entries of an mtree.
16
## Examples
17
18
```rust
19
-use mtree::MTree;
+use mtree2::MTree;
20
use std::time::SystemTime;
21
22
// We're going to load data from a string so this example with pass doctest,
@@ -38,7 +38,7 @@ for entry in entries {
38
// We can print out a human-readable copy of the entry
39
println!("{}", entry);
40
// Let's check that if there is a modification time, it's in the past
41
- if let Some(time) = entry.params.time {
+ if let Some(time) = entry.time() {
42
assert!(time < SystemTime::now());
43
}
44
// We might also want to take a checksum of the file, and compare it to the digests
0 commit comments