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 a couple of typos #13

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 training/2-primer/2.5-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Here we just aliasing, or giving String another binding to a type within our pro
> type alias Person = { name : String, age : Int }

```
To read this one would say: "Person is a type alias for a record with a field called name witch has type of String, and a field age which has type of Int." Again, you will see type alias for records a lot in Elm code, but you probably will not use them too much in the repl. This just to get you started with some of the syntax and ideas around type aliases.
To read this one would say: "Person is a type alias for a record with a field called name which has type of String, and a field age which has type of Int." Again, you will see type alias for records a lot in Elm code, but you probably will not use them too much in the repl. This just to get you started with some of the syntax and ideas around type aliases.


## Type
Expand All @@ -42,7 +42,7 @@ Product "Updesk" : Repl.Product

```

First lets cover syntax. It is very similar to what we had above for our product type, but this time we told Elm that this type will receive a String when we what to use it. The type `Product String` can be seen as a function in JavaScript that looks like:
First lets cover syntax. It is very similar to what we had above for our product type, but this time we told Elm that this type will receive a String when we want to use it. The type `Product String` can be seen as a function in JavaScript that looks like:

```
function Product(name) {
Expand Down