Skip to content

Commit

Permalink
Ukranian => Ukrainian (#2295)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiravillekode authored Aug 12, 2024
1 parent 20dcbc8 commit acfdd33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions exercises/practice/zebra-puzzle/.meta/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;

public enum Color { Red , Green , Ivory , Yellow , Blue }
public enum Nationality { Englishman , Spaniard , Ukranian , Japanese , Norwegian }
public enum Nationality { Englishman , Spaniard , Ukrainian , Japanese , Norwegian }
public enum Pet { Dog , Snails , Fox , Horse , Zebra }
public enum Drink { Coffee , Tea , Milk , OrangeJuice , Water }
public enum Smoke { OldGold , Kools , Chesterfields , LuckyStrike , Parliaments }
Expand Down Expand Up @@ -61,10 +61,10 @@ private static bool MatchesPetRules(Nationality[] nationalities, Pet[] pets)
private static bool MatchesDrinkRules(Color[] colors, Nationality[] nationalities, Drink[] drinks)
{
var coffeeDrunkInGreenHouse = IsIndexMatch(colors, Color.Green, drinks, Drink.Coffee); // #4
var ukranianDrinksTee = IsIndexMatch(nationalities, Nationality.Ukranian, drinks, Drink.Tea); // #5
var ukrainianDrinksTee = IsIndexMatch(nationalities, Nationality.Ukrainian, drinks, Drink.Tea); // #5
var milkDrunkInMiddleHouse = drinks[2] == Drink.Milk; // #9

return coffeeDrunkInGreenHouse && ukranianDrinksTee && milkDrunkInMiddleHouse;
return coffeeDrunkInGreenHouse && ukrainianDrinksTee && milkDrunkInMiddleHouse;
}

private static bool MatchesSmokeRules(Color[] colors, Nationality[] nationalities, Drink[] drinks, Pet[] pets, Smoke[] smokes)
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/zebra-puzzle/ZebraPuzzle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;

public enum Color { Red , Green , Ivory , Yellow , Blue }
public enum Nationality { Englishman , Spaniard , Ukranian , Japanese , Norwegian }
public enum Nationality { Englishman , Spaniard , Ukrainian , Japanese , Norwegian }
public enum Pet { Dog , Snails , Fox , Horse , Zebra }
public enum Drink { Coffee , Tea , Milk , OrangeJuice , Water }
public enum Smoke { OldGold , Kools , Chesterfields , LuckyStrike , Parliaments }
Expand Down

0 comments on commit acfdd33

Please sign in to comment.