We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343a13c commit c9b8d14Copy full SHA for c9b8d14
src/libproc/proc_pid.rs
@@ -525,8 +525,8 @@ pub trait ListPIDInfo {
525
/// use std::process;
526
/// let pid = process::id() as i32;
527
///
528
-/// if Ok(info) = pidinfo::<TaskAllInfo>(pid, 0) {
529
-/// if Ok(fds) = listpidinfo::<ListFDs>(pid, info.pbsd.pbi_nfiles as usize) {
+/// if let Ok(info) = pidinfo::<TaskAllInfo>(pid, 0) {
+/// if let Ok(fds) = listpidinfo::<ListFDs>(pid, info.pbsd.pbi_nfiles as usize) {
530
/// for fd in &fds {
531
/// let fd_type = ProcFDType::from(fd.proc_fdtype);
532
/// println!("File Descriptor: {}, Type: {}", fd.proc_fd, fd_type);
0 commit comments