~jacksonchen666/brainfuck_interpreter

0b43faf75c07bca3321721b461a7d5b45840d836 — Jackson Chen 1 year, 1 month ago 86cc3d2
go fmt
1 files changed, 1 insertions(+), 1 deletions(-)

M brainfuck.go
M brainfuck.go => brainfuck.go +1 -1
@@ 53,7 53,7 @@ func getChar() (byte, error) {
}

// Does a single brainfuck instruction.
func (ps *ProgramState) Step() (error) {
func (ps *ProgramState) Step() error {
	if ps.codePointer > len(*ps.code) { // len: wasteful? store in program state?
		return EOF
	}