- Assign ClubberTroll to another variable in README
This commit is contained in:
		| @@ -104,9 +104,9 @@ troll.attack(); // The troll tries to grab you! | ||||
| troll.fleeBattle(); // The troll shrieks in horror and runs away! | ||||
|  | ||||
| // change the behavior of the simple troll by adding a decorator | ||||
| troll = new ClubbedTroll(troll); | ||||
| troll.attack(); // The troll tries to grab you! The troll swings at you with a club! | ||||
| troll.fleeBattle(); // The troll shrieks in horror and runs away! | ||||
| Troll clubbedTroll = new ClubbedTroll(troll); | ||||
| clubbedTroll.attack(); // The troll tries to grab you! The troll swings at you with a club! | ||||
| clubbedTroll.fleeBattle(); // The troll shrieks in horror and runs away! | ||||
| ``` | ||||
|  | ||||
| ## Applicability | ||||
|   | ||||
		Reference in New Issue
	
	Block a user