From ef41729efb989271c0d8002fcc2b5906f03e8958 Mon Sep 17 00:00:00 2001 From: Celeste Date: Tue, 15 Feb 2022 21:34:00 +0000 Subject: [PATCH] more stupid stuff --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f655269..1fcab06 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,11 +16,11 @@ fn main() { .expect("Registers file not read properly."); let sreg: Vec<&str> = lreg.split(",").collect(); let mut x = 0; + x = x + 1; for s in sreg { let c = s.replace("\n",""); let int: i32 = c.parse().unwrap(); registers[x] = int; - x = x + 1; } }