diff --git a/src/lib.rs b/src/lib.rs index 5c43f7a..d1ab7b6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,15 +4,15 @@ //! # An usage example: //! //! ```no_run -//! use gamedig::games::tf2; +//!use gamedig::games::tf2; //! -//! fn main() { -//! let response = tf2::query("91.216.250.10", None); //or Some(27015), None is the default protocol port -//! match response { -//! Err(error) => println!("Couldn't query, error: {}", error), -//! Ok(r) => println!("{:?}", r) -//! } -//! } +//!fn main() { +//! let response = tf2::query("127.0.0.1", None); // None is the default port (which is 27015), could also be Some(27015) +//! match response { // Result type, must check what it is... +//! Err(error) => println!("Couldn't query, error: {}", error), +//! Ok(r) => println!("{:#?}", r) +//! } +//!} //! ``` //! //! # Crate features: