Address review comments from @alessandrod

Signed-off-by: Andre Fredette <afredette@redhat.com>
pull/445/head
Andre Fredette 2 years ago
parent d43879d991
commit 7c24296b5d

@ -229,7 +229,7 @@ define_link_wrapper!(
); );
impl SchedClassifierLink { 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 /// `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 /// [SchedClassifier::attach], the output of the `tc filter` command or from the output of
/// another BPF loader. /// another BPF loader.
@ -238,8 +238,8 @@ impl SchedClassifierLink {
/// unintended consequences. /// unintended consequences.
/// ///
/// # Errors /// # Errors
/// - If a program is not attached with the provided parameters, calls to /// Returns [`io::Error`] if `if_name` is invalid. If the other parameters are invalid this call
/// [`SchedClassifierLink::detach`] will return a [`TcError::NetlinkError`] /// will succeed, but calling [`SchedClassifierLink::detach`] will return [`TcError::NetlinkError`].
/// ///
/// # Examples /// # Examples
/// ```no_run /// ```no_run

Loading…
Cancel
Save