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 <dave@dtucker.co.uk>
  • Loading branch information
arctic-alpaca and dave-tucker authored Dec 12, 2023
1 parent 423f86c commit 480869c
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 480869c

Please sign in to comment.