Skip to content

Commit 0272d71

Browse files
committed
iluwatar#984 update Bridge readme
1 parent 329479d commit 0272d71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bridge/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public class SoulEatingEnchantment implements Enchantment {
156156
And both the hierarchies in action
157157

158158
```java
159-
Sword enchantedSword = new Sword(new SoulEatingEnchantment());
159+
var enchantedSword = new Sword(new SoulEatingEnchantment());
160160
enchantedSword.wield();
161161
enchantedSword.swing();
162162
enchantedSword.unwield();
@@ -167,7 +167,7 @@ enchantedSword.unwield();
167167
// The sword is unwielded.
168168
// Bloodlust slowly disappears.
169169

170-
Hammer hammer = new Hammer(new FlyingEnchantment());
170+
var hammer = new Hammer(new FlyingEnchantment());
171171
hammer.wield();
172172
hammer.swing();
173173
hammer.unwield();

0 commit comments

Comments
 (0)