Skip to content

Commit

Permalink
Fixed typo in Getting Started guide (elixir-ecto#1863)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga authored and michalmuskala committed Dec 17, 2016
1 parent 9df0b55 commit 5434509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ On the final line, rather than inserting the `person`, we insert the `changeset`
data: #Friends.Person<>, valid?: false>}
```

Just like the last time we did an insert, this returns a tuple. This time however, the first element in the tuple is `:error`, which indicates something bad happened. The specifics of what happend are included in the changeset which is returned. We can access these by doing some pattern matching:
Just like the last time we did an insert, this returns a tuple. This time however, the first element in the tuple is `:error`, which indicates something bad happened. The specifics of what happened are included in the changeset which is returned. We can access these by doing some pattern matching:

```elixir
{:error, changeset} = Friends.Repo.insert(changeset)
Expand Down

0 comments on commit 5434509

Please sign in to comment.