From 9ad2a5e72d269724953f0f311e803a88637af2ee Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Wed, 17 Mar 2021 00:56:44 +0000 Subject: [PATCH] aya: rename ProgramArray::keys to ProgramArray::indices --- aya/src/maps/array/program_array.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }