From ac15afe3e8e10a6aff31466c51996b2c4dfdba8b Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 26 Oct 2019 16:29:04 -0400 Subject: [PATCH] Oops. Fix doc example --- src/net.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.rs b/src/net.rs index b3b4201b..cbedaeee 100644 --- a/src/net.rs +++ b/src/net.rs @@ -30,7 +30,7 @@ //! //! // get the tcp table //! let tcp = procfs::net::tcp().unwrap(); -//! let tcp6 = procfs::tcp6().unwrap(); +//! let tcp6 = procfs::net::tcp6().unwrap(); //! println!("{:<26} {:<26} {:<15} {:<8} {}", "Local address", "Remote address", "State", "Inode", "PID/Program name"); //! for entry in tcp.into_iter().chain(tcp6) { //! // find the process (if any) that has an open FD to this entry's inode