From 6d190fec37379cdab80c3eb19ff0b9423c88f9fc Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 21 Dec 2019 14:53:56 -0800 Subject: [PATCH] Fix typo. --- src/doc/src/reference/specifying-dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/specifying-dependencies.md b/src/doc/src/reference/specifying-dependencies.md index aa2881df00b..86cc29501fa 100644 --- a/src/doc/src/reference/specifying-dependencies.md +++ b/src/doc/src/reference/specifying-dependencies.md @@ -476,7 +476,7 @@ dependencies based on optional crate features. Use [the `[features]` section](manifest.md#the-features-section) instead. -The same applies to `cfg(debug_assertions)`, `cfg(test)` and `cfg(prog_macro)`. +The same applies to `cfg(debug_assertions)`, `cfg(test)` and `cfg(proc_macro)`. These values will not work as expected and will always have the default value returned by `rustc --print=cfg`. There is currently no way to add dependencies based on these configuration values.