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/expr/nat.rs | |
parent | 8a41f1de700b573afb5051abaac22f1094ae21ad (diff) |
docstrings update + typography
Diffstat (limited to 'src/expr/nat.rs')
-rw-r--r-- | src/expr/nat.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expr/nat.rs b/src/expr/nat.rs index 8beaa30..ce6b881 100644 --- a/src/expr/nat.rs +++ b/src/expr/nat.rs @@ -6,9 +6,9 @@ use std::{convert::TryFrom, os::raw::c_char}; #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] #[repr(i32)] pub enum NatType { - /// Source NAT. Changes the source address of a packet + /// Source NAT. Changes the source address of a packet. SNat = libc::NFT_NAT_SNAT, - /// Destination NAT. Changeth the destination address of a packet + /// Destination NAT. Changes the destination address of a packet. DNat = libc::NFT_NAT_DNAT, } @@ -22,8 +22,8 @@ impl NatType { } } -/// A source or destination NAT statement. Modifies the source or destination address -/// (and possibly port) of packets. +/// A source or destination NAT statement. Modifies the source or destination address (and possibly +/// port) of packets. #[derive(Debug, PartialEq)] pub struct Nat { pub nat_type: NatType, |