Skip to content

Commit cca9918

Browse files
committed
Fix bug. Contribution by https://github.com/yingjie-xu
1 parent 2398ba8 commit cca9918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/s-chapter6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public class CommandProcessor implements CommandProcessor
502502
{
503503
assert !aUndoneCommands.isEmpty();
504504
Command command = aUndoneCommands.remove(aUndoneCommands.size()-1);
505-
command.undo();
505+
consume(command);
506506
aExecutedCommands.add(command);
507507
}
508508
}

0 commit comments

Comments
 (0)