diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-07-08 13:14:19 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-07-08 14:46:58 +0530 |
| commit | 1b06c00ddd42ab9c3a34ce6f118be49d94196acb (patch) | |
| tree | aa58195972c409a38ba387c711ce787e339b64ab | |
| parent | 8242a30b9e1a7b70fa90b175508acf7f8d9320ca (diff) | |
| parent | d30662f3e78ddc65f6ecafd20e4b6ecd3033e466 (diff) | |
| download | rust-1b06c00ddd42ab9c3a34ce6f118be49d94196acb.tar.gz rust-1b06c00ddd42ab9c3a34ce6f118be49d94196acb.zip | |
Rollup merge of #34610 - wuranbo:patch-2, r=steveklabnik
doc: make the conditional-compilation example work If not, the error `does not have these features: foo` confused. r? @steveklabnik
| -rw-r--r-- | src/doc/book/conditional-compilation.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/book/conditional-compilation.md b/src/doc/book/conditional-compilation.md index a6ff75db89b..78ab3c18e45 100644 --- a/src/doc/book/conditional-compilation.md +++ b/src/doc/book/conditional-compilation.md @@ -41,8 +41,9 @@ they get set in the [`[features]` section][features] of your `Cargo.toml`: # no features by default default = [] -# The “secure-password” feature depends on the bcrypt package. -secure-password = ["bcrypt"] +# Add feature "foo" here, then you can use it. +# Our "foo" feature depends on nothing else. +foo = [] ``` When you do this, Cargo passes along a flag to `rustc`: |
