1
0
forked from M-Labs/nac3

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

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> {
Self::Fields {
items: traversal.add("data", Ptr(self.item)),
items: traversal.add("items", Ptr(self.item)),
len: traversal.add_auto("len"),
}
}