Fix doc copy mistake

Co-authored-by: Dave Tucker <dave@dtucker.co.uk>
pull/848/head
arctic-alpaca 11 months ago
parent 68525c56c3
commit b5d508ff5b
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. /// Removes the `AF_XDP` socket stored at `index` from the map.
/// ///
/// Returns [`MapError::OutOfBounds`] if `index` is out of bounds, [`MapError::SyscallError`] /// 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> { pub fn clear_index(&mut self, index: u32) -> Result<(), MapError> {
let data = self.inner.borrow_mut(); let data = self.inner.borrow_mut();
check_bounds(data, index)?; check_bounds(data, index)?;

Loading…
Cancel
Save