Skip to content

Commit

Permalink
[desafio-10] Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMercer committed Aug 12, 2023
1 parent 090cbc3 commit 5faabe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions desafio-10/MatMercer/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ func runPrograms(fileName string) error {
return fmt.Errorf("%s: invalid format at line %d: '%s' -> expected prog.tur,input", fileName, line, text)
}
prog, input := progAndInput[0], progAndInput[1]
turMarchine, err := machine.New(prog, input, debug)
turMachine, err := machine.New(prog, input, debug)
if err != nil {
return fmt.Errorf("failed to execute %s with %s input: %s", prog, input, err)
}
turMarchine.Run()
turMachine.Run()

// output the turMarchine processing
fmt.Printf("%s,%s,%s\n", prog, input, turMarchine.GetMemory())
// output the turMachine processing
fmt.Printf("%s,%s,%s\n", prog, input, turMachine.GetMemory())
}

return nil
Expand Down

0 comments on commit 5faabe1

Please sign in to comment.