Skip to content

Commit c9b8d14

Browse files
committed
Fix
1 parent 343a13c commit c9b8d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libproc/proc_pid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ pub trait ListPIDInfo {
525525
/// use std::process;
526526
/// let pid = process::id() as i32;
527527
///
528-
/// if Ok(info) = pidinfo::<TaskAllInfo>(pid, 0) {
529-
/// if Ok(fds) = listpidinfo::<ListFDs>(pid, info.pbsd.pbi_nfiles as usize) {
528+
/// if let Ok(info) = pidinfo::<TaskAllInfo>(pid, 0) {
529+
/// if let Ok(fds) = listpidinfo::<ListFDs>(pid, info.pbsd.pbi_nfiles as usize) {
530530
/// for fd in &fds {
531531
/// let fd_type = ProcFDType::from(fd.proc_fdtype);
532532
/// println!("File Descriptor: {}, Type: {}", fd.proc_fd, fd_type);

0 commit comments

Comments
 (0)