From 6772595f3ea2d0178e02efc97a2fe2a789a04b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=C2=A0Decina?= Date: Thu, 10 Jun 2021 08:47:33 +0000 Subject: [PATCH] aya: ProgramArray: more doc fixes --- aya/src/maps/array/program_array.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aya/src/maps/array/program_array.rs b/aya/src/maps/array/program_array.rs index 32f025b7..9bc296a8 100644 --- a/aya/src/maps/array/program_array.rs +++ b/aya/src/maps/array/program_array.rs @@ -91,7 +91,7 @@ impl> ProgramArray { impl + DerefMut> ProgramArray { /// Sets the target program file descriptor for the given index in the jump table. /// - /// When an eBPF program calls `bpf_tail_call(prog_array, index)`, control + /// When an eBPF program calls `bpf_tail_call(ctx, prog_array, index)`, control /// flow will jump to `program`. pub fn set(&mut self, index: u32, program: &dyn ProgramFd, flags: u64) -> Result<(), MapError> { let fd = self.inner.fd_or_err()?; @@ -110,7 +110,7 @@ impl + DerefMut> ProgramArray { /// Clears the value at index in the jump table. /// - /// Calling `bpf_tail_call(prog_array, index)` on an index that has been cleared returns an + /// Calling `bpf_tail_call(ctx, prog_array, index)` on an index that has been cleared returns an /// error. pub fn clear_index(&mut self, index: &u32) -> Result<(), MapError> { let fd = self.inner.fd_or_err()?;