From 9c961b5dc0086e5b01b74d6d684404c08647cea8 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 5 Oct 2023 21:06:11 +0200 Subject: [PATCH] README fixed #1 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b699e64..cb05f1f 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ use radiobrowser::blocking::RadioBrowserAPI; use std::error::Error; fn main() -> Result<(), Box> { - let api = RadioBrowserAPI::new()?; + let mut api = RadioBrowserAPI::new()?; let servers = RadioBrowserAPI::get_servers()?; println!("Servers: {:?}", servers); - let status = RadioBrowserAPI::get_server_status()?; + let status = api.get_server_status()?; println!("Status: {:?}", status); let countries = api.get_countries().send()?; println!("Countries: {:?}", countries);