From 3f322de9a09a781576cfadb5f4e53e1337ca34ba Mon Sep 17 00:00:00 2001 From: lyken Date: Sun, 25 Aug 2024 15:34:11 +0800 Subject: [PATCH] fix: model CheckTypeFieldTraversal comment --- nac3core/src/codegen/model/structure.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }