File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -408,21 +408,21 @@ impl Named for NopMutator {
408
408
}
409
409
}
410
410
411
- /// [`Mutator`] that flips a boolean value.
411
+ /// [`Mutator`] that inverts a boolean value.
412
412
///
413
- /// Mostly useful in combination with [`mapping::MappingMutator`]s.
413
+ /// Mostly useful in combination with [`mapping::MappingMutator`]s to mutate parts of a complex input .
414
414
#[ derive( Debug ) ]
415
- pub struct BoolMutator ;
415
+ pub struct BoolInvertMutator ;
416
416
417
- impl < S > Mutator < bool , S > for BoolMutator {
417
+ impl < S > Mutator < bool , S > for BoolInvertMutator {
418
418
fn mutate ( & mut self , _state : & mut S , input : & mut bool ) -> Result < MutationResult , Error > {
419
419
* input = !* input;
420
420
Ok ( MutationResult :: Mutated )
421
421
}
422
422
}
423
423
424
- impl Named for BoolMutator {
424
+ impl Named for BoolInvertMutator {
425
425
fn name ( & self ) -> & Cow < ' static , str > {
426
- & Cow :: Borrowed ( "BoolMutator " )
426
+ & Cow :: Borrowed ( "BoolInvertMutator " )
427
427
}
428
428
}
You can’t perform that action at this time.
0 commit comments