From 0965b33c76176bac221234455f38287a48a053e4 Mon Sep 17 00:00:00 2001 From: Lukas Rieger Date: Mon, 27 Jan 2025 01:46:16 +0100 Subject: [PATCH] comment --- godot-macros/src/util/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/godot-macros/src/util/mod.rs b/godot-macros/src/util/mod.rs index e1f5ba66d..17c6375c6 100644 --- a/godot-macros/src/util/mod.rs +++ b/godot-macros/src/util/mod.rs @@ -327,7 +327,7 @@ pub fn make_function_registered_name_constants( funcs .iter() .map(|func| { - // the constant needs the same #[cfg] attribute(s) as the function, so that it is only active if the function is also active. + // The constant needs the same #[cfg] attribute(s) as the function, so that it is only active if the function is also active. let cfg_attributes = extract_cfg_attrs(&func.external_attributes) .into_iter() .collect::>(); @@ -344,8 +344,6 @@ pub fn make_function_registered_name_constants( /// Funcs can be renamed with `#[func(rename=new_name) fn f();`. /// To be able to access the renamed function name at a later point, it is saved in a string constant. -/// This would create the following code for `f`: -/// ``pub const __gdext_func_{class_name}_f: &str = "new_name";`` pub fn make_function_registered_name_constant( class_name: &Ident, func_name: &Ident,