[core] codegen/types: Rename StructField::set_from_value

This commit is contained in:
David Mak 2024-11-25 15:55:18 +08:00
parent 0c9705f5f1
commit 2121b130e7
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ where
} }
/// Sets the value of this field for a given `obj`. /// Sets the value of this field for a given `obj`.
pub fn set_from_value(&self, obj: StructValue<'ctx>, value: Value) { pub fn set_for_value(&self, obj: StructValue<'ctx>, value: Value) {
obj.set_field_at_index(self.index, value); obj.set_field_at_index(self.index, value);
} }