function name more consistent
This commit is contained in:
parent
46752df2c9
commit
86ab1161e7
@ -31,7 +31,7 @@ impl Register<i64> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write_reg(&mut self, position: usize, value: i64) {
|
||||
pub fn set_reg(&mut self, position: usize, value: i64) {
|
||||
if position != 0 {
|
||||
self.register[position] = value;
|
||||
} else {
|
||||
@ -50,7 +50,7 @@ impl Register<f32> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn write_reg(&mut self, position: usize, value: f32) {
|
||||
pub fn set_reg(&mut self, position: usize, value: f32) {
|
||||
self.register[position] = value;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user