-
-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Minor misspelling #3161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor misspelling #3161
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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!")), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The word "severe" was misspelled as "sever" in multiple files. This commit corrects the misspelling to ensure consistency and accuracy. |
||
| ProjectileStrategy(() -> LOGGER.info( | ||
| "You shoot the dragon with the magical crossbow and it falls dead on the ground!")), | ||
| SpellStrategy(() -> LOGGER.info( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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!")); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The word "sever" is used correctly in this context, referring to cutting or separating something. The previous spelling, "severe", means extremely bad or serious. The change is accurate and improves clarity. |
||
| 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. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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!")); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The word "severe" was misspelled as "sever". This commit corrects the misspelling to ensure consistency and accuracy. |
||
| dragonSlayer.goToBattle(); | ||
| LOGGER.info(RED_DRAGON_EMERGES); | ||
| dragonSlayer.changeStrategy(() -> LOGGER.info( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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!")), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The word "severe" was misspelled as "sever". This commit corrects the misspelling to ensure consistency and accuracy. |
||
| PROJECTILE_STRATEGY(() -> LOGGER.info( | ||
| "You shoot the dragon with the magical crossbow and it falls dead on the ground!")), | ||
| SPELL_STRATEGY(() -> LOGGER.info( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The word "severe" was misspelled as "sever" in multiple files. This commit corrects the misspelling to ensure consistency and accuracy.