Skip to content

Commit

Permalink
Fix docstring for load_dotenv
Browse files Browse the repository at this point in the history
The docstring for load_dotenv was missing a word, rendering it confusing.
This commits modifies it for clarity.
  • Loading branch information
larsks committed Mar 15, 2022
1 parent 3832011 commit e139830
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dotenv/main.py
Expand Up @@ -325,7 +325,8 @@ def load_dotenv(
in `.env` file. Defaults to `False`.
- *encoding*: encoding to be used to read the file.
If both `dotenv_path` and `stream`, `find_dotenv()` is used to find the .env file.
If neither `dotenv_path` nor `stream` are provided, `find_dotenv()` is used
to find the .env file.
"""
if dotenv_path is None and stream is None:
dotenv_path = find_dotenv()
Expand Down

0 comments on commit e139830

Please sign in to comment.