Skip to content

Commit 55fe5d5

Browse files
committed
Fixed the name of a variable in README.rst
1 parent bf518c3 commit 55fe5d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ This example will get a player with a certain tag, and search for 5 clans with a
5858
except coc.invalidcredentials as error:
5959
exit(error)
6060
61-
player = await client.get_player("tag")
61+
player = await coc_client.get_player("tag")
6262
print(f"{player.name} has {player.trophies} trophies!")
6363
64-
clans = await client.search_clans(name="best clan ever", limit=5)
64+
clans = await coc_client.search_clans(name="best clan ever", limit=5)
6565
for clan in clans:
6666
print(f"{clan.name} ({clan.tag}) has {clan.member_count} members")
6767
6868
try:
69-
war = await client.get_current_war("#clantag")
69+
war = await coc_client.get_current_war("#clantag")
7070
print(f"{war.clan_tag} is currently in {war.state} state.")
7171
except coc.privatewarlog:
7272
print("uh oh, they have a private war log!")

0 commit comments

Comments
 (0)