From d733de0d9dc32692a6abad602e105c8508a28e57 Mon Sep 17 00:00:00 2001 From: mcskware <13559364+mcskware@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:23:09 +0200 Subject: [PATCH] Add doc comment to benchmark runner in criterion_group macro --- src/macros.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/macros.rs b/src/macros.rs index df7a44d9a..b3f52840d 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -64,6 +64,7 @@ #[macro_export] macro_rules! criterion_group { (name = $name:ident; config = $config:expr; targets = $( $target:path ),+ $(,)*) => { + #[doc="The function which runs the benchmarks."] pub fn $name() { let mut criterion: $crate::Criterion<_> = $config .configure_from_args();