From 8eb9094d680a499a2039d321d990d6deed6d2bb2 Mon Sep 17 00:00:00 2001 From: lyken Date: Sun, 25 Aug 2024 15:50:14 +0800 Subject: [PATCH] fix Struct const_struct comment --- nac3core/src/codegen/model/structure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/codegen/model/structure.rs b/nac3core/src/codegen/model/structure.rs index 08c1c83b..3ebc62dd 100644 --- a/nac3core/src/codegen/model/structure.rs +++ b/nac3core/src/codegen/model/structure.rs @@ -216,7 +216,7 @@ pub struct Struct(pub S); impl<'ctx, S: StructKind<'ctx>> Struct { /// Create a constant struct value. /// - /// This function also validates `fields` and panic when there is something wrong. + /// This function also validates `fields` and panics types don't match. pub fn const_struct( &self, generator: &mut G,