File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub mod flags {
47
47
/// Ensure that this file is created with the `open(2)` call.
48
48
pub const O_EXCL : u32 = bindings:: O_EXCL ;
49
49
50
- /// Large file size enabled (`off64_t` over `off_t`)
50
+ /// Large file size enabled (`off64_t` over `off_t`).
51
51
pub const O_LARGEFILE : u32 = bindings:: O_LARGEFILE ;
52
52
53
53
/// Do not update the file last access time.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl<const ORDER: u32> Pages<ORDER> {
36
36
if pages. is_null ( ) {
37
37
return Err ( ENOMEM ) ;
38
38
}
39
- // INVARIANTS: We checked that the allocation above succeeded>
39
+ // INVARIANTS: We checked that the allocation above succeeded.
40
40
Ok ( Self { pages } )
41
41
}
42
42
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ impl fmt::Display for CStr {
228
228
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
229
229
for & c in self . as_bytes ( ) {
230
230
if ( 0x20 ..0x7f ) . contains ( & c) {
231
- // Printable character
231
+ // Printable character.
232
232
f. write_char ( c as char ) ?;
233
233
} else {
234
234
write ! ( f, "\\ x{:02x}" , c) ?;
@@ -258,7 +258,7 @@ impl fmt::Debug for CStr {
258
258
f. write_str ( "\" " ) ?;
259
259
for & c in self . as_bytes ( ) {
260
260
match c {
261
- // Printable characters
261
+ // Printable characters.
262
262
b'\"' => f. write_str ( "\\ \" " ) ?,
263
263
0x20 ..=0x7e => f. write_char ( c as char ) ?,
264
264
_ => write ! ( f, "\\ x{:02x}" , c) ?,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::fmt::Write;
7
7
pub ( crate ) fn vtable ( _attr : TokenStream , ts : TokenStream ) -> TokenStream {
8
8
let mut tokens: Vec < _ > = ts. into_iter ( ) . collect ( ) ;
9
9
10
- // Scan for the `trait` or `impl` keyword
10
+ // Scan for the `trait` or `impl` keyword.
11
11
let is_trait = tokens
12
12
. iter ( )
13
13
. find_map ( |token| match token {
You can’t perform that action at this time.
0 commit comments