Skip to content

Commit d625dd3

Browse files
committed
Publicly export BatchedMapIter
BatchedMapIter is a public type but was never exported via lib.rs. As a result, it was impossible to name, making it potentially awkward to use. Export it properly. Signed-off-by: Daniel Müller <[email protected]>
1 parent 5e67ab5 commit d625dd3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libbpf-rs/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ pub use crate::error::Result;
9999
pub use crate::iter::Iter;
100100
pub use crate::link::Link;
101101
pub use crate::linker::Linker;
102+
pub use crate::map::BatchedMapIter;
102103
pub use crate::map::Map;
103104
pub use crate::map::MapCore;
104105
pub use crate::map::MapFlags;

libbpf-rs/src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ impl AsRawLibbpf for Map<'_> {
971971

972972
/// A handle to a map. Handles can be duplicated and dropped.
973973
///
974-
/// While possible to [created directly][MapHandle::create], in many cases it is
974+
/// While possible to [create directly][MapHandle::create], in many cases it is
975975
/// useful to create such a handle from an existing [`Map`]:
976976
/// ```no_run
977977
/// # use libbpf_rs::Map;

0 commit comments

Comments
 (0)