forked from M-Labs/nac3
[core] codegen/types: Rename StructField::set_from_value
This commit is contained in:
parent
95e29d9997
commit
d62c6b95fd
@ -145,7 +145,7 @@ where
|
||||
}
|
||||
|
||||
/// 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user