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,