We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc6a399 commit eca5fbaCopy full SHA for eca5fba
mnl/src/socket.rs
@@ -161,7 +161,7 @@ impl Socket {
161
/// a partial message will be written to `buffer`, and the rest discarded.
162
///
163
/// # Panics
164
- /// Panics with debug_assertions if `buffer` isn't aligned to `size_of::<nlmsghdr>`.
+ /// Panics with debug_assertions if `buffer` isn't aligned to `nlmsghdr`.
165
pub fn recv_raw(&self, buffer: &mut [u8]) -> io::Result<usize> {
166
debug_assert!(
167
buffer.as_ptr().cast::<nlmsghdr>().is_aligned(),
0 commit comments