Skip to content

Commit 65bddc2

Browse files
committed
fixup: safety comment
1 parent eca5fba commit 65bddc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mnl/src/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<'a> Iterator for NlMessages<'a> {
3636
}
3737

3838
// Safety:
39-
// nlmsghdr is a C struct, and we've checked alignment and length
39+
// nlmsghdr is a C struct, valid for all bit-patters, and we've checked alignment and length
4040
let header = unsafe { header.read() };
4141

4242
let msg_len = header.nlmsg_len as usize;

0 commit comments

Comments
 (0)