diff --git a/nac3core/src/codegen/model/structure.rs b/nac3core/src/codegen/model/structure.rs index 5d2fa00b..08c1c83b 100644 --- a/nac3core/src/codegen/model/structure.rs +++ b/nac3core/src/codegen/model/structure.rs @@ -73,7 +73,7 @@ impl<'ctx, 'a, G: CodeGenerator + ?Sized> FieldTraversal<'ctx> for TypeFieldTrav } } -/// A traversal to check the types of a field for debug assertions. +/// A traversal to check the field types of a [`StructType`]. struct CheckTypeFieldTraversal<'ctx, 'a, G: CodeGenerator + ?Sized> { generator: &'a mut G, ctx: &'ctx Context, @@ -82,7 +82,7 @@ struct CheckTypeFieldTraversal<'ctx, 'a, G: CodeGenerator + ?Sized> { index: u32, /// The [`StructType`] to check. scrutinee: StructType<'ctx>, - /// A list of collected errors so far. + /// The list of collected errors so far. errors: Vec, }