diff options
author | la Fleur <lafleur@boum.org> | 2021-11-29 10:26:28 +0000 |
---|---|---|
committer | la Fleur <lafleur@boum.org> | 2021-11-29 10:26:28 +0000 |
commit | 7054902f6388dbc58938564170d6278220903811 (patch) | |
tree | 2d583ea5c7baa3253373a9740a046af398697fc2 /src/expr/log.rs | |
parent | 8a41f1de700b573afb5051abaac22f1094ae21ad (diff) | |
parent | 3c63e90be830c2b9fe26754600ce5a9ee4db25d0 (diff) |
Merge branch 'docstrings' into 'master'
docstrings update
See merge request rustwall/rustables!13
Diffstat (limited to 'src/expr/log.rs')
-rw-r--r-- | src/expr/log.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr/log.rs b/src/expr/log.rs index 5c06897..8d20b48 100644 --- a/src/expr/log.rs +++ b/src/expr/log.rs @@ -73,8 +73,8 @@ pub struct LogGroup(pub u16); pub struct LogPrefix(CString); impl LogPrefix { - /// Create a new LogPrefix from a String. Converts it to CString as needed by nftnl. Note - /// that LogPrefix should not be more than 127 characters long. + /// Creates a new LogPrefix from a String. Converts it to CString as needed by nftnl. Note that + /// LogPrefix should not be more than 127 characters long. pub fn new(prefix: &str) -> Result<Self, LogPrefixError> { if prefix.chars().count() > 127 { return Err(LogPrefixError::TooLongPrefix); |