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

Fix typo in card suit name #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -1935,7 +1935,7 @@ value card = case card of

And we can use a double pattern match to produce a function which determines
which suit trumps another suit. For example we can introduce an order of suits
of cards where the ranking of cards proceeds (Clubs, Diamonds, Hearts, Spaces).
of cards where the ranking of cards proceeds (Clubs, Diamonds, Hearts, Spades).
A `_` underscore used inside a pattern indicates a wildcard pattern and
matches against any constructor given. This should be the last pattern used a in
match list.
Expand All @@ -1944,7 +1944,7 @@ match list.
suitBeats :: Suit -> Suit -> Bool
suitBeats Clubs Diamonds = True
suitBeats Clubs Hearts = True
suitBeats Clubs Spaces = True
suitBeats Clubs Spades = True
suitBeats Diamonds Hearts = True
suitBeats Diamonds Spades = True
suitBeats Hearts Spades = True
Expand Down