fix README code example
This commit is contained in:
1 parent
acc6bae9ca
commit
0d7d98c463
1 file changed
+2
-1
@@ -16,7 +16,8 @@ tx sends raw un-debounced events to the debouncer, and the rx receives the debou
|
||||
the debouncer. Both halves can be cloned to allow for multiple senders and receivers.
|
||||
|
||||
```rust
|
||||
# use std::{thread, time::Duration};
|
||||
use std::{thread, time::Duration};
|
||||
|
||||
// Create a new debouncer which takes raw events of type `u32` and outputs
|
||||
// debounced events of type `Vec<u32>`.
|
||||
let (tx, rx) = treacle::debouncer::<u32, Vec<u32>, _>(
|
||||
|
||||
Reference in new issue
Block a user