readme: fixed example

This commit is contained in:
Alex 2023-10-20 20:48:33 +02:00
parent 6a96615aae
commit 3703f55535

View file

@ -26,7 +26,7 @@ use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> { fn main() -> Result<(), Box<dyn Error>> {
let mut api = RadioBrowserAPI::new()?; let mut api = RadioBrowserAPI::new()?;
let servers = RadioBrowserAPI::get_servers()?; let servers = RadioBrowserAPI::get_default_servers()?;
println!("Servers: {:?}", servers); println!("Servers: {:?}", servers);
let status = api.get_server_status()?; let status = api.get_server_status()?;
println!("Status: {:?}", status); println!("Status: {:?}", status);