mirror of
https://github.com/Steffo99/micronfig.git
synced 2024-11-24 00:54:19 +00:00
macros::optional
: Fix name of macro called in example
This commit is contained in:
parent
e84481ed37
commit
35409c99a9
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ macro_rules! required {
|
||||||
/// # std::env::set_var("IP_ADDRESS", "192.168.1.1");
|
/// # std::env::set_var("IP_ADDRESS", "192.168.1.1");
|
||||||
/// # std::env::remove_var("IP_ADDRESS_FILE");
|
/// # std::env::remove_var("IP_ADDRESS_FILE");
|
||||||
///
|
///
|
||||||
/// micronfig::required!(IP_ADDRESS, IpAddr);
|
/// micronfig::optional!(IP_ADDRESS, IpAddr);
|
||||||
/// println!("{:?}", *IP_ADDRESS);
|
/// println!("{:?}", *IP_ADDRESS);
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
|
Loading…
Reference in a new issue