From c09a9ae36d04212ea38067b38f045f1825d92eac Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Fri, 2 Aug 2024 10:43:01 -0400 Subject: [PATCH] Fix doc indentation --- cursive-macros/src/builder/callback_helper.rs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cursive-macros/src/builder/callback_helper.rs b/cursive-macros/src/builder/callback_helper.rs index e4836824..5dfac315 100644 --- a/cursive-macros/src/builder/callback_helper.rs +++ b/cursive-macros/src/builder/callback_helper.rs @@ -303,20 +303,20 @@ fn get_arity(bound: &syn::TraitBound) -> usize { /// This is where this macro comes into play: from an original function that requires a closure, it /// generates two helper functions: /// * A _maker_ function, to be used when storing variables. This function takes a generic type -/// implementing the same `Fn` trait as the desired callback, and returns it wrapped in the correct -/// trait object. It will be named `{name}_cb`, where `{name}` is the name of the original function -/// this macro is attached to. +/// implementing the same `Fn` trait as the desired callback, and returns it wrapped in the +/// correct trait object. It will be named `{name}_cb`, where `{name}` is the name of the +/// original function this macro is attached to. /// * A _setter_ function, to be used when writing blueprints. This function wraps the original -/// function, but takes a trait-object instead of a generic `Fn` type, and unwraps it internally. -/// It will be named `{name}_with_cb`, where `{name}` is the name of the original function this -/// macro is attached to. +/// function, but takes a trait-object instead of a generic `Fn` type, and unwraps it +/// internally. It will be named `{name}_with_cb`, where `{name}` is the name of the original +/// function this macro is attached to. /// /// # Notes /// -/// * The wrapped function doesn't even have to take `self`, it can be a "static" -/// constructor method. -/// * The `maker` function always takes a `Fn`, not a `FnMut` or `FnOnce`. -/// Use the `cursive::immut1!` (and others) macros to wrap a `FnMut` into a `Fn` if you need it. +/// * The wrapped function doesn't even have to take `self`, it can be a "static" constructor +/// method. +/// * The `maker` function always takes a `Fn`, not a `FnMut` or `FnOnce`. Use the +/// `cursive::immut1!` (and others) macros to wrap a `FnMut` into a `Fn` if you need it. /// /// # Examples ///