mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 21:42:23 -05:00
Fix typo
This commit is contained in:
parent
6255efe8b2
commit
62e92476e6
1 changed files with 3 additions and 3 deletions
|
@ -43,12 +43,12 @@ enum WatchEvent {
|
|||
TerminalResize,
|
||||
}
|
||||
|
||||
struct DebouceEventHandler {
|
||||
struct DebounceEventHandler {
|
||||
tx: Sender<WatchEvent>,
|
||||
exercises: &'static [Exercise],
|
||||
}
|
||||
|
||||
impl notify_debouncer_mini::DebounceEventHandler for DebouceEventHandler {
|
||||
impl notify_debouncer_mini::DebounceEventHandler for DebounceEventHandler {
|
||||
fn handle_event(&mut self, event: DebounceEventResult) {
|
||||
let event = match event {
|
||||
Ok(event) => {
|
||||
|
@ -140,7 +140,7 @@ pub fn watch(state_file: &mut StateFile, exercises: &'static [Exercise]) -> Resu
|
|||
let (tx, rx) = channel();
|
||||
let mut debouncer = new_debouncer(
|
||||
Duration::from_secs(1),
|
||||
DebouceEventHandler {
|
||||
DebounceEventHandler {
|
||||
tx: tx.clone(),
|
||||
exercises,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue