Skip to content

Commit

Permalink
Fix doc copy mistake
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Tucker <[email protected]>
  • Loading branch information
arctic-alpaca and dave-tucker committed Jun 30, 2024
1 parent 5bb817f commit cee470b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aya/src/maps/xdp/xsk_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit cee470b

Please sign in to comment.