Changed example ip to localhost

This commit is contained in:
CosminPerRam 2022-11-25 19:47:26 +02:00
parent 7498b68e81
commit 06b9ef0013

View file

@ -2,7 +2,7 @@
use gamedig::games::mc;
fn main() {
let response = mc::query("cosminperram.com", Some(26062)); //or Some(25565), None is the default protocol port (which is 25565)
let response = mc::query("localhost", None); //or Some(25565), None is the default protocol port (which is 25565)
match response {
Err(error) => println!("Couldn't query, error: {error}"),
Ok(r) => println!("{:#?}", r)