@@ -246,22 +246,21 @@ pub use v1::*;
246246/// of impls and structs required by the benchmarking engine. Additionally, a benchmark
247247/// function is also generated that resembles the function definition you provide, with a few
248248/// modifications:
249- /// 1. The function name is transformed from i.e. `original_name` to `_original_name` so as not
250- /// to collide with the struct `original_name` that is created for some of the benchmarking
251- /// engine impls.
252- /// 2. Appropriate `T: Config` and `I` (if this is an instance benchmark) generics are added to
253- /// the function automatically during expansion, so you should not add these manually on
254- /// your function definition (but you may make use of `T` and `I` anywhere within your
255- /// benchmark function, in any of the three sections (setup, call, verification).
249+ /// 1. The function name is transformed from i.e. `original_name` to `_original_name` so as not to
250+ /// collide with the struct `original_name` that is created for some of the benchmarking engine
251+ /// impls.
252+ /// 2. Appropriate `T: Config` and `I` (if this is an instance benchmark) generics are added to the
253+ /// function automatically during expansion, so you should not add these manually on your
254+ /// function definition (but you may make use of `T` and `I` anywhere within your benchmark
255+ /// function, in any of the three sections (setup, call, verification).
256256/// 3. Arguments such as `u: Linear<10, 100>` are converted to `u: u32` to make the function
257257/// directly callable.
258- /// 4. A `verify: bool` param is added as the last argument. Specifying `true` will result in
259- /// the verification section of your function executing, while a value of `false` will skip
258+ /// 4. A `verify: bool` param is added as the last argument. Specifying `true` will result in the
259+ /// verification section of your function executing, while a value of `false` will skip
260260/// verification.
261261/// 5. If you specify a return type on the function definition, it must conform to the [rules
262- /// below](#support-for-result-benchmarkerror-and-the--operator), and the last statement of
263- /// the function definition must resolve to something compatible with `Result<(),
264- /// BenchmarkError>`.
262+ /// below](#support-for-result-benchmarkerror-and-the--operator), and the last statement of the
263+ /// function definition must resolve to something compatible with `Result<(), BenchmarkError>`.
265264///
266265/// The reason we generate an actual function as part of the expansion is to allow the compiler
267266/// to enforce several constraints that would otherwise be difficult to enforce and to reduce
0 commit comments