Skip to content
Snippets Groups Projects
Commit cc86db4d authored by Zhuolun Lang's avatar Zhuolun Lang
Browse files

Update Machine.java

parent ee566f74
Branches
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ public class Machine
private int parseReg(String s) throws InvalidInstructionException
{
if (s.length() < 2){
if (s.length() < 3){
throw new InvalidInstructionException();
}
if (s.charAt(0) != 'r'){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment