@@ -23,7 +23,8 @@ use crate::windows as imp;
2323/// use kill_tree::{blocking::kill_tree, get_available_max_process_id, Result};
2424///
2525/// fn main() -> Result<()> {
26- /// let _ = kill_tree(get_available_max_process_id())?;
26+ /// let target_process_id = get_available_max_process_id(); // Replace with your target process ID.
27+ /// let _ = kill_tree(target_process_id)?;
2728/// Ok(())
2829/// }
2930/// ```
@@ -70,11 +71,12 @@ pub fn kill_tree(process_id: ProcessId) -> Result<Outputs> {
7071/// };
7172///
7273/// fn main() -> Result<()> {
74+ /// let target_process_id = get_available_max_process_id(); // Replace with your target process ID.
7375/// let config = Config {
7476/// signal: String::from("SIGKILL"),
7577/// ..Default::default()
7678/// };
77- /// let _ = kill_tree_with_config(get_available_max_process_id() , &config)?;
79+ /// let _ = kill_tree_with_config(target_process_id , &config)?;
7880/// Ok(())
7981/// }
8082/// ```
@@ -86,11 +88,12 @@ pub fn kill_tree(process_id: ProcessId) -> Result<Outputs> {
8688/// };
8789///
8890/// fn main() -> Result<()> {
91+ /// let target_process_id = get_available_max_process_id(); // Replace with your target process ID.
8992/// let config = Config {
9093/// include_target: false,
9194/// ..Default::default()
9295/// };
93- /// let _ = kill_tree_with_config(get_available_max_process_id() , &config)?;
96+ /// let _ = kill_tree_with_config(target_process_id , &config)?;
9497/// Ok(())
9598/// }
9699/// ```
0 commit comments