mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix doc of desired_targets
(#337)
This commit is contained in:
parent
79d4e9b015
commit
89869db239
2 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
//!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue