Skip to content

Commit b138c52

Browse files
authored
Add doc links to newly added load_callback return err (#3222)
1 parent c44802c commit b138c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libafl/src/stages/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl SyncFromDiskMetadata {
5858
}
5959

6060
/// A stage that loads testcases from disk to sync with other fuzzers such as AFL++
61-
/// When syncing, the stage will ignore `Error::InvalidInput` and will skip the file.
61+
/// When syncing, the stage will ignore [`Error::InvalidInput`] and will skip the file.
6262
#[derive(Debug)]
6363
pub struct SyncFromDiskStage<CB, E, EM, I, S, Z> {
6464
name: Cow<'static, str>,
@@ -172,7 +172,7 @@ where
172172

173173
impl<CB, E, EM, I, S, Z> SyncFromDiskStage<CB, E, EM, I, S, Z> {
174174
/// Creates a new [`SyncFromDiskStage`]
175-
/// To skip a file, you can return `Error::invalid_input` in `load_callback`
175+
/// To skip a file, you can return [`Error::invalid_input()`] from the provided `load_callback`
176176
#[must_use]
177177
pub fn new(sync_dirs: Vec<PathBuf>, load_callback: CB, interval: Duration, name: &str) -> Self {
178178
Self {

0 commit comments

Comments
 (0)