File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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) ?,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::fmt::Write;
77pub ( 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 {
You can’t perform that action at this time.
0 commit comments