Skip to content

Commit f87f7e0

Browse files
committed
treewide: finish Rust comments in period
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 767e953 commit f87f7e0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

rust/kernel/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub mod flags {
4747
/// Ensure that this file is created with the `open(2)` call.
4848
pub const O_EXCL: u32 = bindings::O_EXCL;
4949

50-
/// Large file size enabled (`off64_t` over `off_t`)
50+
/// Large file size enabled (`off64_t` over `off_t`).
5151
pub const O_LARGEFILE: u32 = bindings::O_LARGEFILE;
5252

5353
/// Do not update the file last access time.

rust/kernel/pages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<const ORDER: u32> Pages<ORDER> {
3636
if pages.is_null() {
3737
return Err(ENOMEM);
3838
}
39-
// INVARIANTS: We checked that the allocation above succeeded>
39+
// INVARIANTS: We checked that the allocation above succeeded.
4040
Ok(Self { pages })
4141
}
4242

rust/kernel/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl fmt::Display for CStr {
228228
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
229229
for &c in self.as_bytes() {
230230
if (0x20..0x7f).contains(&c) {
231-
// Printable character
231+
// Printable character.
232232
f.write_char(c as char)?;
233233
} else {
234234
write!(f, "\\x{:02x}", c)?;
@@ -258,7 +258,7 @@ impl fmt::Debug for CStr {
258258
f.write_str("\"")?;
259259
for &c in self.as_bytes() {
260260
match c {
261-
// Printable characters
261+
// Printable characters.
262262
b'\"' => f.write_str("\\\"")?,
263263
0x20..=0x7e => f.write_char(c as char)?,
264264
_ => write!(f, "\\x{:02x}", c)?,

rust/macros/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::fmt::Write;
77
pub(crate) fn vtable(_attr: TokenStream, ts: TokenStream) -> TokenStream {
88
let mut tokens: Vec<_> = ts.into_iter().collect();
99

10-
// Scan for the `trait` or `impl` keyword
10+
// Scan for the `trait` or `impl` keyword.
1111
let is_trait = tokens
1212
.iter()
1313
.find_map(|token| match token {

0 commit comments

Comments
 (0)