forked from M-Labs/nac3
fix: model CheckTypeFieldTraversal comment
This commit is contained in:
parent
6528115d6a
commit
3f322de9a0
|
@ -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> {
|
struct CheckTypeFieldTraversal<'ctx, 'a, G: CodeGenerator + ?Sized> {
|
||||||
generator: &'a mut G,
|
generator: &'a mut G,
|
||||||
ctx: &'ctx Context,
|
ctx: &'ctx Context,
|
||||||
|
@ -82,7 +82,7 @@ struct CheckTypeFieldTraversal<'ctx, 'a, G: CodeGenerator + ?Sized> {
|
||||||
index: u32,
|
index: u32,
|
||||||
/// The [`StructType`] to check.
|
/// The [`StructType`] to check.
|
||||||
scrutinee: StructType<'ctx>,
|
scrutinee: StructType<'ctx>,
|
||||||
/// A list of collected errors so far.
|
/// The list of collected errors so far.
|
||||||
errors: Vec<ModelError>,
|
errors: Vec<ModelError>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue