diff --git a/aya/src/maps/array/program_array.rs b/aya/src/maps/array/program_array.rs index 0eae5952..a5eeb137 100644 --- a/aya/src/maps/array/program_array.rs +++ b/aya/src/maps/array/program_array.rs @@ -46,7 +46,9 @@ impl> ProgramArray { Ok(ProgramArray { inner: map }) } - pub unsafe fn keys<'coll>(&'coll self) -> MapKeys<'coll, u32> { + /// An iterator over the indices of the array that point to a program. The iterator item type + /// is `Result`. + pub unsafe fn indices(&self) -> MapKeys<'_, u32> { MapKeys::new(&self.inner) }