Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
riesentoaster committed Dec 21, 2024
1 parent 7b16d45 commit c13dccf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions libafl/src/mutators/havoc_mutations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
use libafl_bolts::{
map_tuple_list_type, merge_tuple_list_type,
tuples::{Map, Merge},
tuples::{tuple_list, tuple_list_type, Map, Merge},
};
use tuple_list::{tuple_list, tuple_list_type};

use crate::mutators::{
mapping::{ToMappingMutator, ToOptionalMutator},
Expand Down
9 changes: 5 additions & 4 deletions libafl_bolts/src/shmem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,12 @@ where
/// Is needed on top.
#[cfg(all(unix, feature = "std", not(target_os = "haiku")))]
pub mod unix_shmem {
/// Mmap [`ShMem`] for Unix
#[cfg(not(target_os = "android"))]
pub use default::MmapShMem;
/// Mmap [`ShMemProvider`] for Unix
#[cfg(not(target_os = "android"))]
pub use default::MmapShMemProvider;
/// Mmap [`ShMem`] for Unix
#[cfg(not(target_os = "android"))]
pub use default::{MmapShMem, MAX_MMAP_FILENAME_LEN};

#[cfg(doc)]
use crate::shmem::{ShMem, ShMemProvider};
Expand Down Expand Up @@ -669,7 +669,8 @@ pub mod unix_shmem {
Error,
};

const MAX_MMAP_FILENAME_LEN: usize = 20;
/// The size of the buffer of the filename of mmap mapped memory regions
pub const MAX_MMAP_FILENAME_LEN: usize = 20;

/// Mmap-based The sharedmap impl for unix using [`shm_open`] and [`mmap`].
/// Default on `MacOS` and `iOS`, where we need a central point to unmap
Expand Down
2 changes: 1 addition & 1 deletion libafl_bolts/src/tuples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ macro_rules! map_tuple_list_type {
};
}

/// Merges the types of two merged [`tuple_list`]s
/// Merges the types of two merged [`tuple_list!`]s
///
/// ```rust
/// use libafl_bolts::{merge_tuple_list_type, tuples::{Merge, tuple_list, tuple_list_type}};
Expand Down

0 comments on commit c13dccf

Please sign in to comment.