Remove needless main() definition from example

This commit is contained in:
Ethan Henderson 2022-07-30 15:11:16 +01:00
parent dfcec577d8
commit a65a273e8d

View file

@ -35,7 +35,6 @@
//! You can parse IRC messages using the provided `parse` function. //! You can parse IRC messages using the provided `parse` function.
//! //!
//! ``` //! ```
//! fn main() {
//! let msg = "@id=123;name=rick :nick!user@host.tmi.twitch.tv PRIVMSG #rickastley :Never gonna give you up!"; //! let msg = "@id=123;name=rick :nick!user@host.tmi.twitch.tv PRIVMSG #rickastley :Never gonna give you up!";
//! match ircparser::parse(msg) { //! match ircparser::parse(msg) {
//! Ok(x) => { //! Ok(x) => {
@ -54,7 +53,6 @@
//! return; //! return;
//! } //! }
//! }; //! };
//! }
//! ``` //! ```
mod line; mod line;