From 7c24296b5df73a5d9d07872a3832cf4e9aa9c76f Mon Sep 17 00:00:00 2001 From: Andre Fredette Date: Mon, 30 Jan 2023 10:03:38 -0500 Subject: [PATCH] Address review comments from @alessandrod Signed-off-by: Andre Fredette --- aya/src/programs/tc.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aya/src/programs/tc.rs b/aya/src/programs/tc.rs index e803dc68..cece3232 100644 --- a/aya/src/programs/tc.rs +++ b/aya/src/programs/tc.rs @@ -229,7 +229,7 @@ define_link_wrapper!( ); impl SchedClassifierLink { - /// This API is used to construct a [`SchedClassifierLink`] where the `if_name`, `attach_type`, + /// Constructs a [`SchedClassifierLink`] where the `if_name`, `attach_type`, /// `priority` and `handle` are already known. This may have been found from a link created by /// [SchedClassifier::attach], the output of the `tc filter` command or from the output of /// another BPF loader. @@ -238,8 +238,8 @@ impl SchedClassifierLink { /// unintended consequences. /// /// # Errors - /// - If a program is not attached with the provided parameters, calls to - /// [`SchedClassifierLink::detach`] will return a [`TcError::NetlinkError`] + /// Returns [`io::Error`] if `if_name` is invalid. If the other parameters are invalid this call + /// will succeed, but calling [`SchedClassifierLink::detach`] will return [`TcError::NetlinkError`]. /// /// # Examples /// ```no_run