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 Apr 4, 2024
1 parent f7fa07b commit 3890914
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 3890914

Please sign in to comment.