aboutsummaryrefslogtreecommitdiff
path: root/src/table.rs
diff options
context:
space:
mode:
authorla Fleur <lafleur@boum.org>2021-11-29 10:26:28 +0000
committerla Fleur <lafleur@boum.org>2021-11-29 10:26:28 +0000
commit7054902f6388dbc58938564170d6278220903811 (patch)
tree2d583ea5c7baa3253373a9740a046af398697fc2 /src/table.rs
parent8a41f1de700b573afb5051abaac22f1094ae21ad (diff)
parent3c63e90be830c2b9fe26754600ce5a9ee4db25d0 (diff)
Merge branch 'docstrings' into 'master'
docstrings update See merge request rustwall/rustables!13
Diffstat (limited to 'src/table.rs')
-rw-r--r--src/table.rs6
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());