From 86ab1161e7879aa8d59b664dcf03bbf93ee50c1a Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Thu, 26 Jan 2023 00:08:49 +0100 Subject: [PATCH] function name more consistent --- src/simulator/machine.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simulator/machine.rs b/src/simulator/machine.rs index 31e4993..e336842 100644 --- a/src/simulator/machine.rs +++ b/src/simulator/machine.rs @@ -31,7 +31,7 @@ impl Register { } } - 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 { } } - pub fn write_reg(&mut self, position: usize, value: f32) { + pub fn set_reg(&mut self, position: usize, value: f32) { self.register[position] = value; }