Skip to content

Commit 5d6e69b

Browse files
committed
update comments
1 parent 5423d30 commit 5d6e69b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/anodized-core/src/instrument.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ impl Mode {
8282
if let Self::InjectChecks(settings) = self
8383
&& settings.split_func
8484
{
85-
// Split function into two entry points for e.g. fuzzing.
85+
// Build a wrapper that forwards to the "split" function.
8686
let mut wrapper_fn = item_fn.clone();
8787
let mangled_ident =
8888
Self::build_split_fn(false, &mut wrapper_fn.sig, wrapper_fn.block.as_mut());
8989
wrapper_fn.to_tokens(&mut tokens);
9090

91-
// Mangle the name and return type of the original function.
91+
// "Split" the original function by mangling its return type.
92+
// The "split" entry point is used for e.g. fuzzing and PBT.
9293
item_fn.sig.ident = mangled_ident;
9394
item_fn.sig.output = match item_fn.sig.output {
9495
ReturnType::Default => parse_quote!(-> Result<(), (bool, String)>),

0 commit comments

Comments
 (0)