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/cmp.rs | |
parent | 8a41f1de700b573afb5051abaac22f1094ae21ad (diff) |
docstrings update + typography
Diffstat (limited to 'src/expr/cmp.rs')
-rw-r--r-- | src/expr/cmp.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/expr/cmp.rs b/src/expr/cmp.rs index 384f0b4..f6ea900 100644 --- a/src/expr/cmp.rs +++ b/src/expr/cmp.rs @@ -101,11 +101,10 @@ impl<const N: usize> Expression for Cmp<[u8; N]> { Cmp::<u8>::get_raw_name() } - /// The raw data contained inside `Cmp` expressions can only be deserialized to - /// arrays of bytes, to ensure that the memory layout of retrieved data cannot be - /// violated. It is your responsibility to provide the correct length of the byte - /// data. If the data size is invalid, you will get the error - /// `DeserializationError::InvalidDataSize`. + /// The raw data contained inside `Cmp` expressions can only be deserialized to arrays of + /// bytes, to ensure that the memory layout of retrieved data cannot be violated. It is your + /// responsibility to provide the correct length of the byte data. If the data size is invalid, + /// you will get the error `DeserializationError::InvalidDataSize`. /// /// Example (warning, no error checking!): /// ```rust @@ -183,8 +182,8 @@ macro_rules! nft_expr_cmp { }; } -/// Can be used to compare the value loaded by [`Meta::IifName`] and [`Meta::OifName`]. Please -/// note that it is faster to check interface index than name. +/// Can be used to compare the value loaded by [`Meta::IifName`] and [`Meta::OifName`]. Please note +/// that it is faster to check interface index than name. /// /// [`Meta::IifName`]: enum.Meta.html#variant.IifName /// [`Meta::OifName`]: enum.Meta.html#variant.OifName |