Skip to content

Commit

Permalink
Merge pull request #73 from somlor/master
Browse files Browse the repository at this point in the history
Ecto.Query.last typo
  • Loading branch information
radar committed Apr 27, 2016
2 parents 3dbd4d5 + e1bfc43 commit 946fa57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ The `one` function retrieves just one record from our database and returns a new
Similar to `first`, there is also `last`:

```elixir
Friends.Person |> Ecto.Query.first |> Friends.Repo.one
Friends.Person |> Ecto.Query.last |> Friends.Repo.one
%Friends.Person{__meta__: #Ecto.Schema.Metadata<:loaded>, age: 26,
first_name: "Jane", id: 3, last_name: "Smith"}
```
Expand Down

0 comments on commit 946fa57

Please sign in to comment.