Update docs to show new examples
This commit is contained in:
parent
901e0e0baf
commit
79c207fd59
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
//! }
|
||||
|
|
Loading…
Reference in a new issue