From 49172dd5be1a69ba0e8e27f6e814e26763c75632 Mon Sep 17 00:00:00 2001 From: Mehdi Rahimi Date: Mon, 13 Jan 2025 19:33:54 +0330 Subject: [PATCH] fix: Minor misspelling (#3161) --- localization/es/strategy/README.md | 2 +- localization/ko/strategy/README.md | 2 +- strategy/README.md | 6 +++--- strategy/src/main/java/com/iluwatar/strategy/App.java | 2 +- .../src/main/java/com/iluwatar/strategy/LambdaStrategy.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/localization/es/strategy/README.md b/localization/es/strategy/README.md index 5c04764f4c2d..d211914458e2 100644 --- a/localization/es/strategy/README.md +++ b/localization/es/strategy/README.md @@ -127,7 +127,7 @@ public class LambdaStrategy { public enum Strategy implements DragonSlayingStrategy { MeleeStrategy(() -> LOGGER.info( - "With your Excalibur you severe the dragon's head!")), + "With your Excalibur you sever the dragon's head!")), ProjectileStrategy(() -> LOGGER.info( "You shoot the dragon with the magical crossbow and it falls dead on the ground!")), SpellStrategy(() -> LOGGER.info( diff --git a/localization/ko/strategy/README.md b/localization/ko/strategy/README.md index e445fa91d3d2..f604962d1f6b 100644 --- a/localization/ko/strategy/README.md +++ b/localization/ko/strategy/README.md @@ -123,7 +123,7 @@ public class LambdaStrategy { public enum Strategy implements DragonSlayingStrategy { MeleeStrategy(() -> LOGGER.info( - "With your Excalibur you severe the dragon's head!")), + "With your Excalibur you sever the dragon's head!")), ProjectileStrategy(() -> LOGGER.info( "You shoot the dragon with the magical crossbow and it falls dead on the ground!")), SpellStrategy(() -> LOGGER.info( diff --git a/strategy/README.md b/strategy/README.md index 08004ad25a1c..781463d20af8 100644 --- a/strategy/README.md +++ b/strategy/README.md @@ -127,7 +127,7 @@ public class App { // Java 8 functional implementation Strategy pattern LOGGER.info(GREEN_DRAGON_SPOTTED); dragonSlayer = new DragonSlayer( - () -> LOGGER.info("With your Excalibur you severe the dragon's head!")); + () -> LOGGER.info("With your Excalibur you sever the dragon's head!")); dragonSlayer.goToBattle(); LOGGER.info(RED_DRAGON_EMERGES); dragonSlayer.changeStrategy(() -> LOGGER.info( @@ -162,13 +162,13 @@ Program output: 13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you. 13:06:36.634 [main] INFO com.iluwatar.strategy.SpellStrategy -- You cast the spell of disintegration and the dragon vaporizes in a pile of dust! 13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Green dragon spotted ahead! -13:06:36.634 [main] INFO com.iluwatar.strategy.App -- With your Excalibur you severe the dragon's head! +13:06:36.634 [main] INFO com.iluwatar.strategy.App -- With your Excalibur you sever the dragon's head! 13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Red dragon emerges. 13:06:36.635 [main] INFO com.iluwatar.strategy.App -- You shoot the dragon with the magical crossbow and it falls dead on the ground! 13:06:36.635 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you. 13:06:36.635 [main] INFO com.iluwatar.strategy.App -- You cast the spell of disintegration and the dragon vaporizes in a pile of dust! 13:06:36.635 [main] INFO com.iluwatar.strategy.App -- Green dragon spotted ahead! -13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- With your Excalibur you severe the dragon's head! +13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- With your Excalibur you sever the dragon's head! 13:06:36.637 [main] INFO com.iluwatar.strategy.App -- Red dragon emerges. 13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- You shoot the dragon with the magical crossbow and it falls dead on the ground! 13:06:36.637 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you. diff --git a/strategy/src/main/java/com/iluwatar/strategy/App.java b/strategy/src/main/java/com/iluwatar/strategy/App.java index aa603c1065ed..28cb88dfb39b 100644 --- a/strategy/src/main/java/com/iluwatar/strategy/App.java +++ b/strategy/src/main/java/com/iluwatar/strategy/App.java @@ -66,7 +66,7 @@ public static void main(String[] args) { // Java 8 functional implementation Strategy pattern LOGGER.info(GREEN_DRAGON_SPOTTED); dragonSlayer = new DragonSlayer( - () -> LOGGER.info("With your Excalibur you severe the dragon's head!")); + () -> LOGGER.info("With your Excalibur you sever the dragon's head!")); dragonSlayer.goToBattle(); LOGGER.info(RED_DRAGON_EMERGES); dragonSlayer.changeStrategy(() -> LOGGER.info( diff --git a/strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java b/strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java index e31621db0ea3..da9b76a84d98 100644 --- a/strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java +++ b/strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java @@ -37,7 +37,7 @@ public class LambdaStrategy { */ public enum Strategy implements DragonSlayingStrategy { MELEE_STRATEGY(() -> LOGGER.info( - "With your Excalibur you severe the dragon's head!")), + "With your Excalibur you sever the dragon's head!")), PROJECTILE_STRATEGY(() -> LOGGER.info( "You shoot the dragon with the magical crossbow and it falls dead on the ground!")), SPELL_STRATEGY(() -> LOGGER.info(