Skip to content

Commit 49172dd

Browse files
author
Mehdi Rahimi
authored
fix: Minor misspelling (iluwatar#3161)
1 parent f0f4c7d commit 49172dd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Diff for: localization/es/strategy/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public class LambdaStrategy {
127127

128128
public enum Strategy implements DragonSlayingStrategy {
129129
MeleeStrategy(() -> LOGGER.info(
130-
"With your Excalibur you severe the dragon's head!")),
130+
"With your Excalibur you sever the dragon's head!")),
131131
ProjectileStrategy(() -> LOGGER.info(
132132
"You shoot the dragon with the magical crossbow and it falls dead on the ground!")),
133133
SpellStrategy(() -> LOGGER.info(

Diff for: localization/ko/strategy/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public class LambdaStrategy {
123123

124124
public enum Strategy implements DragonSlayingStrategy {
125125
MeleeStrategy(() -> LOGGER.info(
126-
"With your Excalibur you severe the dragon's head!")),
126+
"With your Excalibur you sever the dragon's head!")),
127127
ProjectileStrategy(() -> LOGGER.info(
128128
"You shoot the dragon with the magical crossbow and it falls dead on the ground!")),
129129
SpellStrategy(() -> LOGGER.info(

Diff for: strategy/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public class App {
127127
// Java 8 functional implementation Strategy pattern
128128
LOGGER.info(GREEN_DRAGON_SPOTTED);
129129
dragonSlayer = new DragonSlayer(
130-
() -> LOGGER.info("With your Excalibur you severe the dragon's head!"));
130+
() -> LOGGER.info("With your Excalibur you sever the dragon's head!"));
131131
dragonSlayer.goToBattle();
132132
LOGGER.info(RED_DRAGON_EMERGES);
133133
dragonSlayer.changeStrategy(() -> LOGGER.info(
@@ -162,13 +162,13 @@ Program output:
162162
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you.
163163
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!
164164
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Green dragon spotted ahead!
165-
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- With your Excalibur you severe the dragon's head!
165+
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- With your Excalibur you sever the dragon's head!
166166
13:06:36.634 [main] INFO com.iluwatar.strategy.App -- Red dragon emerges.
167167
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!
168168
13:06:36.635 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you.
169169
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!
170170
13:06:36.635 [main] INFO com.iluwatar.strategy.App -- Green dragon spotted ahead!
171-
13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- With your Excalibur you severe the dragon's head!
171+
13:06:36.637 [main] INFO com.iluwatar.strategy.LambdaStrategy -- With your Excalibur you sever the dragon's head!
172172
13:06:36.637 [main] INFO com.iluwatar.strategy.App -- Red dragon emerges.
173173
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!
174174
13:06:36.637 [main] INFO com.iluwatar.strategy.App -- Black dragon lands before you.

Diff for: strategy/src/main/java/com/iluwatar/strategy/App.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static void main(String[] args) {
6666
// Java 8 functional implementation Strategy pattern
6767
LOGGER.info(GREEN_DRAGON_SPOTTED);
6868
dragonSlayer = new DragonSlayer(
69-
() -> LOGGER.info("With your Excalibur you severe the dragon's head!"));
69+
() -> LOGGER.info("With your Excalibur you sever the dragon's head!"));
7070
dragonSlayer.goToBattle();
7171
LOGGER.info(RED_DRAGON_EMERGES);
7272
dragonSlayer.changeStrategy(() -> LOGGER.info(

Diff for: strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class LambdaStrategy {
3737
*/
3838
public enum Strategy implements DragonSlayingStrategy {
3939
MELEE_STRATEGY(() -> LOGGER.info(
40-
"With your Excalibur you severe the dragon's head!")),
40+
"With your Excalibur you sever the dragon's head!")),
4141
PROJECTILE_STRATEGY(() -> LOGGER.info(
4242
"You shoot the dragon with the magical crossbow and it falls dead on the ground!")),
4343
SPELL_STRATEGY(() -> LOGGER.info(

0 commit comments

Comments
 (0)