Skip to content

Commit

Permalink
docs: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bellackn committed May 1, 2024
1 parent 9adbf04 commit b94c4dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/games/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/games/news.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b94c4dd

Please sign in to comment.