From b94c4ddbce9b7753f010f03f2c0e7ab552887cd7 Mon Sep 17 00:00:00 2001 From: Nico Bellack Date: Wed, 1 May 2024 22:40:09 +0200 Subject: [PATCH] docs: minor changes --- README.md | 2 +- src/games/library.rs | 2 +- src/games/news.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c2482ce..4577f3e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ fn main() -> Result<(), SteamError> { let steam_client = SteamClient::from(api_key); // Get a list of all games from the user with the provided Steam ID (given that they are publicly visible) - let steam_id = "some-steam-id"; + let steam_id = String::from("some-steam-id"); let steam_lib = steam_client.get_library(&steam_id)?; // Print out the games that were played for more than an hour. diff --git a/src/games/library.rs b/src/games/library.rs index ca0ccd6..a3895e4 100644 --- a/src/games/library.rs +++ b/src/games/library.rs @@ -78,7 +78,7 @@ impl SteamClient { /// # use steamr::errors::SteamError; /// fn main() -> Result<(), SteamError> { /// let steam_client = SteamClient::from("an-api-key".to_string()); - /// let steam_id = "some-steam-id"; + /// let steam_id = String::from("some-steam-id"); /// let steam_lib = steam_client.get_library(&steam_id)?; /// /// // Print out games that were played for more than an hour. diff --git a/src/games/news.rs b/src/games/news.rs index e7e5b7e..42958a5 100644 --- a/src/games/news.rs +++ b/src/games/news.rs @@ -71,7 +71,7 @@ impl SteamClient { /// # use steamr::errors::SteamError; /// fn main() -> Result<(), SteamError> { /// let steam_client = SteamClient::from("an-api-key".to_string()); - /// let app_id ="10"; // This is CS:GO + /// let app_id = "10"; // This is CS:GO /// let news = steam_client.get_game_news(app_id, 5, 100)?; /// /// news.game_news.iter()