Skip to content

Commit eca5fba

Browse files
committed
fixup: docs oops
1 parent cc6a399 commit eca5fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mnl/src/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl Socket {
161161
/// a partial message will be written to `buffer`, and the rest discarded.
162162
///
163163
/// # Panics
164-
/// Panics with debug_assertions if `buffer` isn't aligned to `size_of::<nlmsghdr>`.
164+
/// Panics with debug_assertions if `buffer` isn't aligned to `nlmsghdr`.
165165
pub fn recv_raw(&self, buffer: &mut [u8]) -> io::Result<usize> {
166166
debug_assert!(
167167
buffer.as_ptr().cast::<nlmsghdr>().is_aligned(),

0 commit comments

Comments
 (0)