Closed DusterTheFirst closed 3 years ago
upon looking into the code, it just calls std::env::var after first initializing dotenv. This should be made clearer in the documentation
The documentation for dotenv::var
starts with the line "After loading the dotenv file, fetches the environment variable key from the current process. Is there anything that would make it clearer that it loads the file first and then fetches the variables?
I guess I misunderstood the "After loading the dotenv file" to mean that this function must be called after dotenv::dotenv
What is the purpose of
dotenv::var
anddotenv::vars
and how do they compare to their std::env equivalents