Update features.md

Just a very minor typo

(that said: these docs don't actually explain what a Feature group is before using the term, but that's for another issue)
This commit is contained in:
Lars Francke 2020-11-12 12:22:01 +01:00 committed by GitHub
parent 8662ab427a
commit f3519d7964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ The usage of features is subject to a few rules:
individual features. individual features.
* Feature groups are not allowed to cyclically depend on one another. * Feature groups are not allowed to cyclically depend on one another.
* Dev-dependencies cannot be optional. * Dev-dependencies cannot be optional.
* Features groups can only reference optional dependencies. * Feature groups can only reference optional dependencies.
* When a feature is selected, Cargo will call `rustc` with `--cfg * When a feature is selected, Cargo will call `rustc` with `--cfg
feature="${feature_name}"`. If a feature group is included, it and all of its feature="${feature_name}"`. If a feature group is included, it and all of its
individual features will be included. This can be tested in code via individual features will be included. This can be tested in code via