diff options
author | lafleur <lafleur@boum.org> | 2021-11-28 16:42:27 +0100 |
---|---|---|
committer | lafleur <lafleur@boum.org> | 2021-11-28 16:42:27 +0100 |
commit | 100e365bc653089d54319355a8dea99b28a77a15 (patch) | |
tree | 552b5c9dfc79e1030be31fff514f67211839c31c /src/table.rs | |
parent | 8a41f1de700b573afb5051abaac22f1094ae21ad (diff) |
docstrings update + typography
Diffstat (limited to 'src/table.rs')
-rw-r--r-- | src/table.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/table.rs b/src/table.rs index 2f21453..e6b9559 100644 --- a/src/table.rs +++ b/src/table.rs @@ -8,8 +8,8 @@ use std::{ os::raw::c_char, }; -/// Abstraction of `nftnl_table`. The top level container in netfilter. A table has a protocol -/// family and contain [`Chain`]s that in turn hold the rules. +/// Abstraction of `nftnl_table`, the top level container in netfilter. A table has a protocol +/// family and contains [`Chain`]s that in turn hold the rules. /// /// [`Chain`]: struct.Chain.html pub struct Table { @@ -78,7 +78,7 @@ impl Table { } } - /// Update the userdata of this chain. + /// Updates the userdata of this chain. pub fn set_userdata(&self, data: &CStr) { unsafe { sys::nftnl_table_set_str(self.table, sys::NFTNL_TABLE_USERDATA as u16, data.as_ptr()); |