fix README code example

This commit is contained in:
pantonshire committed 2023-08-29 09:07:05 +01:00
1 parent acc6bae9ca
commit 0d7d98c463
1 file changed
+2 -1
+2 -1
View File
@@ -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. the debouncer. Both halves can be cloned to allow for multiple senders and receivers.
```rust ```rust
# use std::{thread, time::Duration}; use std::{thread, time::Duration};
// Create a new debouncer which takes raw events of type `u32` and outputs // Create a new debouncer which takes raw events of type `u32` and outputs
// debounced events of type `Vec<u32>`. // debounced events of type `Vec<u32>`.
let (tx, rx) = treacle::debouncer::<u32, Vec<u32>, _>( let (tx, rx) = treacle::debouncer::<u32, Vec<u32>, _>(