未验证 提交 6cf02544 编写于 作者: X Xenilo137 提交者: GitHub

fix: change 'swinged' to 'swung' in sword.java and hammer.java of bridge pattern (#1779)

* minor (non-coding) change

* Update Sword.java
上级 dafe02f1
...@@ -43,7 +43,7 @@ public class Hammer implements Weapon { ...@@ -43,7 +43,7 @@ public class Hammer implements Weapon {
@Override @Override
public void swing() { public void swing() {
LOGGER.info("The hammer is swinged."); LOGGER.info("The hammer is swung.");
enchantment.apply(); enchantment.apply();
} }
......
...@@ -43,7 +43,7 @@ public class Sword implements Weapon { ...@@ -43,7 +43,7 @@ public class Sword implements Weapon {
@Override @Override
public void swing() { public void swing() {
LOGGER.info("The sword is swinged."); LOGGER.info("The sword is swung.");
enchantment.apply(); enchantment.apply();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册