#984 update Bridge readme

This commit is contained in:
Ilkka Seppälä
2019-11-11 22:07:54 +02:00
parent 329479dda0
commit 0272d71851

View File

@ -156,7 +156,7 @@ public class SoulEatingEnchantment implements Enchantment {
And both the hierarchies in action And both the hierarchies in action
```java ```java
Sword enchantedSword = new Sword(new SoulEatingEnchantment()); var enchantedSword = new Sword(new SoulEatingEnchantment());
enchantedSword.wield(); enchantedSword.wield();
enchantedSword.swing(); enchantedSword.swing();
enchantedSword.unwield(); enchantedSword.unwield();
@ -167,7 +167,7 @@ enchantedSword.unwield();
// The sword is unwielded. // The sword is unwielded.
// Bloodlust slowly disappears. // Bloodlust slowly disappears.
Hammer hammer = new Hammer(new FlyingEnchantment()); var hammer = new Hammer(new FlyingEnchantment());
hammer.wield(); hammer.wield();
hammer.swing(); hammer.swing();
hammer.unwield(); hammer.unwield();