Skip to content
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

Merged
merged 4 commits into from
Jan 13, 2025
Merged

Minor misspelling #3161

merged 4 commits into from
Jan 13, 2025

Conversation

mehdirahimi
Copy link

@mehdirahimi mehdirahimi commented Jan 1, 2025

No description provided.

Copy link
Owner

@iluwatar iluwatar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes have to be made to the code as well

Copy link

github-actions bot commented Jan 13, 2025

PR Summary

This PR fixes a misspelling in the documentation and code examples related to the Strategy design pattern. The corrected phrase is now "With your Excalibur you sever the dragon's head!" instead of the previous misspelling. The change affects multiple language localizations (es, ko) and the main codebase.

Changes

File Summary
localization/es/strategy/README.md Fixed a misspelling in the Spanish translation of the Strategy pattern documentation. The corrected phrase is now "With your Excalibur you sever the dragon's head!".
localization/ko/strategy/README.md Fixed a misspelling in the Korean translation of the Strategy pattern documentation. The corrected phrase is now "With your Excalibur you sever the dragon's head!".
strategy/README.md Fixed a misspelling in the main documentation of the Strategy pattern example. The corrected phrase is now "With your Excalibur you sever the dragon's head!". Also updated the program output section to reflect the correction.
strategy/src/main/java/com/iluwatar/strategy/App.java Corrected a misspelling in the App.java file. The phrase used to invoke the dragon-slaying strategy is now correctly spelled as "With your Excalibur you sever the dragon's head!".
strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java Corrected a misspelling in the LambdaStrategy.java file. The phrase used to describe the melee strategy is now correctly spelled as "With your Excalibur you sever the dragon's head!".

autogenerated by presubmit.ai

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 Pull request needs attention.

Review Summary

Commits Considered (2)
  • 8e82b52: Merge branch 'iluwatar:master' into patch-1
  • 6444546: Minor misspelling
Files Processed (1)
  • strategy/README.md (2 hunks)
Actionable Comments (1)
  • strategy/README.md [130-130]

    typo: "Correct spelling of 'sever'"

Skipped Comments (1)
  • strategy/README.md [165-171]

    consistency: "Consistent use of 'sever' in log messages"

@@ -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!"));

Choose a reason for hiding this comment

The 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.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 Pull request needs attention.

Review Summary

Commits Considered (2)
Files Processed (4)
  • localization/es/strategy/README.md (1 hunk)
  • localization/ko/strategy/README.md (1 hunk)
  • strategy/src/main/java/com/iluwatar/strategy/App.java (1 hunk)
  • strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java (1 hunk)
Actionable Comments (4)
  • localization/es/strategy/README.md [130-130]

    typo: "Fix misspelling of "severe""

  • localization/ko/strategy/README.md [126-126]

    typo: "Fix misspelling of "severe""

  • strategy/src/main/java/com/iluwatar/strategy/App.java [69-69]

    typo: "Fix misspelling of "severe""

  • strategy/src/main/java/com/iluwatar/strategy/LambdaStrategy.java [40-40]

    typo: "Fix misspelling of "severe""

Skipped Comments (0)

@@ -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!")),

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.

@@ -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!")),

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.

@@ -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!"));

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". This commit corrects the misspelling to ensure consistency and accuracy.

@@ -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!")),

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". This commit corrects the misspelling to ensure consistency and accuracy.

@mehdirahimi
Copy link
Author

The changes have to be made to the code as well

Changes applied to source code files.

@iluwatar iluwatar merged commit 49172dd into iluwatar:master Jan 13, 2025
2 checks passed
@iluwatar
Copy link
Owner

Looks good! Thank you for the contribution 🎉

@all-contributors please add @mehdirahimi for code

Copy link
Contributor

@iluwatar

I've put up a pull request to add @mehdirahimi! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants