Skip to content

Commit 2f28b87

Browse files
authored
Merge pull request #1745 from praw-dev/username_available
Fix example in username_available docs
2 parents 40e022e + 65695fc commit 2f28b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

praw/reddit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,11 +891,11 @@ def submission( # pylint: disable=invalid-name,redefined-builtin
891891
def username_available(self, name: str) -> bool:
892892
"""Check to see if the username is available.
893893
894-
For example, to check if the username ``bboe`` is availible, try:
894+
For example, to check if the username ``bboe`` is available, try:
895895
896896
.. code-block:: python
897897
898-
reddit.redditor("bboe").available()
898+
reddit.username_available("bboe")
899899
900900
"""
901901
return self._objectify_request(

0 commit comments

Comments
 (0)