process: doc improvements

This commit is contained in:
2025-12-03 12:52:44 +00:00
parent 93bb675333
commit 9eb953f84c
+3 -3
View File
@@ -7,9 +7,9 @@ use derive_more::derive::Display;
#[derive(Display)] #[derive(Display)]
/// an identifier for searching for a process /// an identifier for searching for a process
pub enum Identifier { pub enum Identifier {
/// the process id /// process id to search for
Pid(u32), Pid(u32),
/// the process name /// process name to search for
Name(String), Name(String),
} }
@@ -66,7 +66,7 @@ impl Process {
Ok(process) Ok(process)
} }
/// get the `Module` of a `Process` by name /// get a `Module` of a `Process` by name
pub fn module(&self, name: &str) -> Result<Module, Error> { pub fn module(&self, name: &str) -> Result<Module, Error> {
let Some(snapshot) = snapshot::ModuleSnapshot::get_modules(self.id)? let Some(snapshot) = snapshot::ModuleSnapshot::get_modules(self.id)?
.into_iter() .into_iter()