From 89869db239afe6ebc25d242e6de46b886bebdeef Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 5 Sep 2022 01:11:28 +1000 Subject: [PATCH] Fix doc of `desired_targets` (#337) --- crates/detect-targets/src/desired_targets.rs | 3 +-- crates/detect-targets/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/detect-targets/src/desired_targets.rs b/crates/detect-targets/src/desired_targets.rs index c7d7179f..0f236d7b 100644 --- a/crates/detect-targets/src/desired_targets.rs +++ b/crates/detect-targets/src/desired_targets.rs @@ -43,8 +43,7 @@ impl DesiredTargets { } } -/// If opts_targets is `Some`, then it will be parsed in the format of -/// `$target1,$target2,...`. +/// If opts_targets is `Some`, then it will be used. /// Otherwise, call `detect_targets` using `tokio::spawn` to detect targets. /// /// Since `detect_targets` internally spawns a process and wait for it, diff --git a/crates/detect-targets/src/lib.rs b/crates/detect-targets/src/lib.rs index 6ca2a297..2e74eb17 100644 --- a/crates/detect-targets/src/lib.rs +++ b/crates/detect-targets/src/lib.rs @@ -10,8 +10,8 @@ //! - [`detect_targets`] provides the API to get the target //! at runtime, but the code is run on the current thread. //! - [`get_desired_targets`] provides the API to either -//! parse `$target1,$target2,...` override provided by the users, -//! or run [`detect_targets`] in the background using [`tokio::spawn`]. +//! use override provided by the users, or run [`detect_targets`] +//! in the background using [`tokio::spawn`]. //! //! # Example //!