We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c35504f commit 1f8894cCopy full SHA for 1f8894c
1 file changed
examples/check.rs
@@ -31,18 +31,18 @@ fn main() {
31
32
let now = Instant::now();
33
let dict = Dictionary::new(EN_US_AFF, EN_US_DIC).unwrap();
34
- println!("Compiled the dictionary in {}ms", now.elapsed().as_millis());
+ println!("Compiled the dictionary in {:?}", now.elapsed());
35
36
37
if dict.check(&word) {
38
println!(
39
- "\"{word}\" is in the dictionary (checked in {}µs)",
40
- now.elapsed().as_micros()
+ "\"{word}\" is in the dictionary (checked in {:?})",
+ now.elapsed()
41
);
42
} else {
43
eprintln!(
44
- "\"{word}\" is NOT in the dictionary (checked in {}µs)",
45
+ "\"{word}\" is NOT in the dictionary (checked in {:?})",
46
47
std::process::exit(1);
48
}
0 commit comments