forked from M-Labs/nac3
1
0
Fork 0

fix: model CheckTypeFieldTraversal comment

This commit is contained in:
lyken 2024-08-25 15:34:11 +08:00
parent 6528115d6a
commit 3f322de9a0
No known key found for this signature in database
GPG Key ID: 3BD5FC6AC8325DD8
1 changed files with 2 additions and 2 deletions

View File

@ -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<ModelError>,
}