forked from M-Labs/nac3
1
0
Fork 0

fixup! core/object: add ListObject and TupleObject

fix List field items name
This commit is contained in:
lyken 2024-08-23 16:27:49 +08:00
parent aad4fafcba
commit 4e3e490b92
No known key found for this signature in database
GPG Key ID: 3BD5FC6AC8325DD8
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ impl<'ctx, Item: Model<'ctx>> StructKind<'ctx> for List<Item> {
fn traverse_fields<F: FieldTraversal<'ctx>>(&self, traversal: &mut F) -> Self::Fields<F> { fn traverse_fields<F: FieldTraversal<'ctx>>(&self, traversal: &mut F) -> Self::Fields<F> {
Self::Fields { Self::Fields {
items: traversal.add("data", Ptr(self.item)), items: traversal.add("items", Ptr(self.item)),
len: traversal.add_auto("len"), len: traversal.add_auto("len"),
} }
} }