Skip to content

Commit

Permalink
Update README example
Browse files Browse the repository at this point in the history
  • Loading branch information
allan2 committed Mar 18, 2024
1 parent 31bbdc2 commit bfea7c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dotenv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ This library loads environment variables from a _.env_ file. This is convenient
### Loading at runtime

```rs
use dotenvy::dotenv;
use std::env;

fn main() {
// load environment variables from .env file
load().expect(".env file not found");
dotenvy::load().expect(".env file not found");

for (key, value) in env::vars() {
println!("{key}: {value}");
Expand Down

0 comments on commit bfea7c8

Please sign in to comment.