SergioBenitez / Figment

A hierarchical configuration library so con-free, it's unreal.
Apache License 2.0
604 stars 35 forks source link

Small error in documentation #118

Closed Davilink closed 1 month ago

Davilink commented 1 month ago

I'm not sure if i'm right or wrong, so that why i didn't create a PR, but i thing there a small error here https://github.com/SergioBenitez/Figment/blob/c730bdf644e8ee0d39c82a6fdc6bd58bd551fa61/src/providers/env.rs#L243-L254

I think we should see this at the line 254

// We now have `FOO=100`, `BAR_FOO=hi`, and `foobar=hi`. 

the map in the documentation is looking for something that start with foo_, not just foo

SergioBenitez commented 1 month ago

Good catch! I think I meant to have foo_bar as an original env var here. Fixing now.