Spelling fix in README

This commit is contained in:
harrison 2013-12-05 17:02:52 -08:00
parent fc78f0636c
commit 22fc211c14

View File

@ -4,10 +4,10 @@
To encapsulate invocation and decoupling. To encapsulate invocation and decoupling.
We have an Invoker and a Receiver. This pattern use a "Command" to delegate the method call against the Receiver and presents the same method "execute". We have an Invoker and a Receiver. This pattern uses a "Command" to delegate the method call against the Receiver and presents the same method "execute".
Therefore, the Invoker just knows to call "execute" to process the Command of the client. The Receiver is decoupled from the Invoker. Therefore, the Invoker just knows to call "execute" to process the Command of the client. The Receiver is decoupled from the Invoker.
The second aspect of ths pattern is the undo(), which undoes the method execute(). The second aspect of this pattern is the undo(), which undoes the method execute().
Command can also be aggregated to combine more complex commands with minimum copy-paste and relying on composition over inheritance. Command can also be aggregated to combine more complex commands with minimum copy-paste and relying on composition over inheritance.
## Examples ## Examples