function name more consistent

This commit is contained in:
Quentin Legot 2023-01-26 00:08:49 +01:00
parent 46752df2c9
commit 86ab1161e7

View File

@ -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;
}