mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-15 00:00:15 +02:00
taskdump: fix taskdump cargo config example (#6150)
The documentation for the `Handle::dump()` method includes a description of the Rust flags needed. However, the sample `.cargo/config.toml` file is incorrect. It gives the Rust flags as: ``` rustflags = ["--cfg tokio_unstable", "--cfg tokio_taskdump"] ``` However, each command line argument needs to be a separate element in the array: ``` rustflags = ["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"] ``` This change corrects that line.
This commit is contained in:
@@ -487,7 +487,7 @@ cfg_taskdump! {
|
||||
/// `.cargo/config.toml`:
|
||||
/// ```text
|
||||
/// [build]
|
||||
/// rustflags = ["--cfg tokio_unstable", "--cfg tokio_taskdump"]
|
||||
/// rustflags = ["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"]
|
||||
/// ```
|
||||
///
|
||||
/// [cargo-config]:
|
||||
|
||||
Reference in New Issue
Block a user