Skip to content

Commit 2dcce97

Browse files
committed
docs: Fix example in README
1 parent 94cffee commit 2dcce97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/mtree2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A library for iterating through entries of an mtree.
1616
## Examples
1717

1818
```rust
19-
use mtree::MTree;
19+
use mtree2::MTree;
2020
use std::time::SystemTime;
2121

2222
// We're going to load data from a string so this example with pass doctest,
@@ -38,7 +38,7 @@ for entry in entries {
3838
// We can print out a human-readable copy of the entry
3939
println!("{}", entry);
4040
// Let's check that if there is a modification time, it's in the past
41-
if let Some(time) = entry.params.time {
41+
if let Some(time) = entry.time() {
4242
assert!(time < SystemTime::now());
4343
}
4444
// We might also want to take a checksum of the file, and compare it to the digests

0 commit comments

Comments
 (0)