rust-lang / cfg-if

A if/elif-like macro for Rust #[cfg] statements
Apache License 2.0
557 stars 40 forks source link

Add expanded example to readme #38

Closed camsteffen closed 4 years ago

camsteffen commented 4 years ago

I think an expanded example goes a long ways to show what the macro actually does. Even if it seems like it should be obvious, well..., it wasn't obvious to me until I did this exercise. I assume no one will mind that I altered the macro output to its simplest form (e.g. unix instead of all(unix)).

alexcrichton commented 4 years ago

Thanks!