Update docs to show new examples

This commit is contained in:
Yash Karandikar 2021-11-04 13:58:01 -05:00
parent 901e0e0baf
commit 79c207fd59
Signed by: karx
GPG key ID: A794DA2529474BA5
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,9 @@ fn main() -> Result<(), std::io::Error> {
if let Command::OTHER(line) = command {
print!("{}", line);
}
if let Command::PRIVMSG(channel, message) = command {
println!("PRIVMSG received: {} {}", channel, message);
}
}
}
}

View file

@ -11,6 +11,9 @@
//! if let Command::OTHER(line) = command {
//! print!("{}", line);
//! }
//! if let Command::PRIVMSG(channel, message) = command {
//! println!("PRIVMSG received: {} {}", channel, message);
//! }
//! }
//! # break;
//! }