Skip to content

Commit

Permalink
fixup: documentation for kill_state
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Jul 24, 2024
1 parent c5cf6ef commit a0cb0be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ impl PfCtl {
Ok(wrapped_states)
}

/// Remove the specified state
/// Remove the specified state.
///
/// All current states can be obtained via [get_states].
pub fn kill_state(&mut self, state: &State) -> Result<()> {
let mut pfioc_state_kill = unsafe { mem::zeroed::<ffi::pfvar::pfioc_state_kill>() };
setup_pfioc_state_kill(state.as_raw(), &mut pfioc_state_kill);
Expand Down

0 comments on commit a0cb0be

Please sign in to comment.