From eceeee1c50867dc6d9a26b3c6e7efa6bba19c7ac Mon Sep 17 00:00:00 2001 From: lyken Date: Thu, 20 Jun 2024 11:47:05 +0800 Subject: [PATCH] core: add newline in comments --- nac3core/src/codegen/builtin_fns.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nac3core/src/codegen/builtin_fns.rs b/nac3core/src/codegen/builtin_fns.rs index 6d8e348..77a3973 100644 --- a/nac3core/src/codegen/builtin_fns.rs +++ b/nac3core/src/codegen/builtin_fns.rs @@ -1192,6 +1192,7 @@ macro_rules! create_helper_call_numpy_unary_elementwise { /// * `$fn_name:literal`: To be passed to the `fn_name` parameter of [`helper_call_numpy_unary_elementwise`]. /// * `$on_scalar:expr`: The closure (see below for its type) that acts on float scalar values and returns /// the boolean results of LLVM type `i1`. The returned `i1` value will be converted into an `i8`. +/// /// ```rust /// // Type of `$on_scalar:expr` /// fn on_scalar<'ctx, G: CodeGenerator + ?Sized>( @@ -1227,6 +1228,7 @@ macro_rules! create_helper_call_numpy_unary_elementwise_float_to_bool { /// * `$name:ident`: The identifier of the rust function to be generated. /// * `$fn_name:literal`: To be passed to the `fn_name` parameter of [`helper_call_numpy_unary_elementwise`]. /// * `$on_scalar:expr`: The closure (see below for its type) that acts on float scalar values and returns float results. +/// /// ```rust /// // Type of `$on_scalar:expr` /// fn on_scalar<'ctx, G: CodeGenerator + ?Sized>(