From 4358328663372b372f5d7d2b442e25e596b7a8c9 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 25 Dec 2019 11:03:33 +0300 Subject: [PATCH] chore: update example --- README.md | 5 +++++ itconfig/README.md | 5 +++++ itconfig/src/lib.rs | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/README.md b/README.md index d596326..527e0ab 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,11 @@ use dotenv::dotenv; config! { DEBUG: bool => true, HOST: String => "127.0.0.1".to_string(), + + NAMESPACE { + FOO: bool => true, + BAR: i32 => 10, + } } fn main () { diff --git a/itconfig/README.md b/itconfig/README.md index 1d35b43..00f35a5 100644 --- a/itconfig/README.md +++ b/itconfig/README.md @@ -14,6 +14,11 @@ We recommend you start with the [documentation]. config! { DEBUG: bool => true, HOST: String => "127.0.0.1".to_string(), + + NAMESPACE { + FOO: bool => true, + BAR: i32 => 10, + } } fn main () { diff --git a/itconfig/src/lib.rs b/itconfig/src/lib.rs index 4bdfec7..857fc7b 100644 --- a/itconfig/src/lib.rs +++ b/itconfig/src/lib.rs @@ -12,6 +12,11 @@ //! config! { //! DEBUG: bool => true, //! HOST: String => "127.0.0.1".to_string(), +//! +//! NAMESPACE { +//! FOO: bool => true, +//! BAR: i32 => 10, +//! } //! } //! //! fn main () {