Skip to content

Commit 518f0cd

Browse files
committed
Fix doc comments for doc_lazy_continuation lint
Signed-off-by: Manabu Sugimoto <[email protected]>
1 parent 45a6500 commit 518f0cd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

libseccomp/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub fn check_api(min_level: u32, expected: ScmpVersion) -> Result<bool> {
102102
/// # Arguments
103103
///
104104
/// * `msg` - An arbitrary non-empty operation description, used as a part
105-
/// of the error message returned.
105+
/// of the error message returned.
106106
/// * `min_level` - The libseccomp API level you want to check
107107
/// * `expected` - The libseccomp version you want to check
108108
///

libseccomp/src/filter_context.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ impl ScmpFilterContext {
431431
///
432432
/// * `syscall` - The number of syscall
433433
/// * `priority` - The priority parameter that is an 8-bit value ranging from 0 to 255;
434-
/// a higher value represents a higher priority.
434+
/// a higher value represents a higher priority.
435435
///
436436
/// # Errors
437437
///
@@ -941,7 +941,7 @@ impl ScmpFilterContext {
941941
/// # Arguments
942942
///
943943
/// * `state` - A state flag to specify whether the [`ScmpFilterAttr::CtlLog`] attribute should
944-
/// be enabled
944+
/// be enabled
945945
///
946946
/// # Errors
947947
///
@@ -975,7 +975,7 @@ impl ScmpFilterContext {
975975
/// # Arguments
976976
///
977977
/// * `state` - A state flag to specify whether the [`ScmpFilterAttr::CtlSsb`] attribute should
978-
/// be enabled
978+
/// be enabled
979979
///
980980
/// # Errors
981981
///
@@ -1052,7 +1052,7 @@ impl ScmpFilterContext {
10521052
/// # Arguments
10531053
///
10541054
/// * `state` - A state flag to specify whether the [`ScmpFilterAttr::ApiSysRawRc`] attribute should
1055-
/// be enabled
1055+
/// be enabled
10561056
///
10571057
/// # Errors
10581058
///
@@ -1085,7 +1085,7 @@ impl ScmpFilterContext {
10851085
/// # Arguments
10861086
///
10871087
/// * `state` - A state flag to specify whether the [`ScmpFilterAttr::CtlWaitkill`] attribute should
1088-
/// be enabled
1088+
/// be enabled
10891089
///
10901090
/// # Errors
10911091
///

libseccomp/src/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ pub fn get_syscall_name_from_arch(arch: ScmpArch, syscall: i32) -> Result<String
6464
///
6565
/// * `name` - The name of a syscall
6666
/// * `arch` - An architecture token as `Option` type
67-
/// If arch argument is `None`, the functions returns the number of a syscall
68-
/// on the kernel's native architecture.
67+
/// If arch argument is `None`, the functions returns the number of a syscall
68+
/// on the kernel's native architecture.
6969
///
7070
/// # Errors
7171
///

libseccomp/src/version.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl From<(u32, u32, u32)> for ScmpVersion {
5050
/// # Arguments
5151
///
5252
/// * `version` - A tuple that represents the version of the libseccomp library.
53-
/// The index 0, 1, and 2 represent `major`, `minor`, and `micro` respectively.
53+
/// The index 0, 1, and 2 represent `major`, `minor`, and `micro` respectively.
5454
fn from(version: (u32, u32, u32)) -> Self {
5555
Self {
5656
major: version.0,
@@ -108,7 +108,7 @@ pub fn check_version(expected: ScmpVersion) -> Result<bool> {
108108
/// # Arguments
109109
///
110110
/// * `msg` - An arbitrary non-empty operation description, used as a part
111-
/// of the error message returned.
111+
/// of the error message returned.
112112
/// * `expected` - The libseccomp version you want to check
113113
///
114114
/// # Errors

0 commit comments

Comments
 (0)