Fix doc copy mistake

Co-authored-by: Dave Tucker <dave@dtucker.co.uk>
pull/848/head
arctic-alpaca 1 year ago
parent 01a74db5bd
commit fb0af68738
No known key found for this signature in database
GPG Key ID: 5556CF6C310CFACD

@ -82,7 +82,7 @@ impl<T: BorrowMut<MapData>> XskMap<T> {
/// Removes the `AF_XDP` socket stored at `index` from the map.
///
/// Returns [`MapError::OutOfBounds`] if `index` is out of bounds, [`MapError::SyscallError`]
/// if `bpf_map_update_elem` fails.
/// if `bpf_map_delete_elem` fails.
pub fn clear_index(&mut self, index: u32) -> Result<(), MapError> {
let data = self.inner.borrow_mut();
check_bounds(data, index)?;

Loading…
Cancel
Save