From 7f53e13f4f9c7e130bd5912c8201264be0c0cc39 Mon Sep 17 00:00:00 2001 From: Wynd Date: Sun, 20 Oct 2024 13:39:51 +0300 Subject: [PATCH] Removed the short-hello.bf example --- input/short-hello.bf | 1 - src/main.rs | 1 - 2 files changed, 2 deletions(-) delete mode 100644 input/short-hello.bf diff --git a/input/short-hello.bf b/input/short-hello.bf deleted file mode 100644 index b4e0add..0000000 --- a/input/short-hello.bf +++ /dev/null @@ -1 +0,0 @@ -+[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+. diff --git a/src/main.rs b/src/main.rs index 3e98a23..6231c55 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,6 @@ fn main() { match instruction { b'+' => tape[cell_index] = tape[cell_index].wrapping_add(1), b'-' => tape[cell_index] = tape[cell_index].wrapping_sub(1), - b'>' => { cell_index = cell_index.wrapping_add(1); if tape.len() <= cell_index {