doc: make the conditional-compilation example work

If not, the error `does not have these features: foo` confused. 
r? @steveklabnik
This commit is contained in:
吴冉波 2016-07-02 15:19:09 +08:00 committed by GitHub
parent 32a6373322
commit dd8151f5e2

View file

@ -41,8 +41,12 @@ they get set in the [`[features]` section][features] of your `Cargo.toml`:
# no features by default
default = []
# Add feature "foo" here, then you can use it.
# Our "foo" feature depends on nothings else.
foo = []
# The “secure-password” feature depends on the bcrypt package.
secure-password = ["bcrypt"]
# secure-password = ["bcrypt"]
```
When you do this, Cargo passes along a flag to `rustc`: