From 480869cb3a4793398d079d614487fd5de6e8e361 Mon Sep 17 00:00:00 2001 From: arctic-alpaca <67190338+arctic-alpaca@users.noreply.github.com> Date: Tue, 12 Dec 2023 11:49:30 +0100 Subject: [PATCH] Fix doc copy mistake Co-authored-by: Dave Tucker --- aya/src/maps/xdp/xsk_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/maps/xdp/xsk_map.rs b/aya/src/maps/xdp/xsk_map.rs index 308aeb034..e19e6e371 100644 --- a/aya/src/maps/xdp/xsk_map.rs +++ b/aya/src/maps/xdp/xsk_map.rs @@ -82,7 +82,7 @@ impl> XskMap { /// 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)?;