Update documentation of PowerQueueScheduler::on_add (#1409)

this fixes https://github.com/AFLplusplus/LibAFL/issues/1373
This commit is contained in:
lenawanel 2023-08-10 14:23:19 +02:00 committed by GitHub
parent 418d0dba91
commit 4bee9a9039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ where
S: HasCorpus + HasMetadata + HasTestcase, S: HasCorpus + HasMetadata + HasTestcase,
O: MapObserver, O: MapObserver,
{ {
/// Add an entry to the corpus and return its index /// Add an entry to the corpus
fn on_add(&mut self, state: &mut Self::State, idx: CorpusId) -> Result<(), Error> { fn on_add(&mut self, state: &mut Self::State, idx: CorpusId) -> Result<(), Error> {
let current_idx = *state.corpus().current(); let current_idx = *state.corpus().current();