Skip to content

Commit c99191a

Browse files
committed
Fix syntax in docs
1 parent f1f4ef3 commit c99191a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/rummage_ecto/custom_hooks/keyset_paginate.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defmodule Rummage.Ecto.CustomHooks.KeysetPaginate do
3737
3838
```elixir
3939
Rummage.Ecto.CustomHooks.KeysetPaginate.run(Product,
40-
%{per_page: 10, page: 1, last_seen_pk: 10, pk: :id}
40+
%{per_page: 10, page: 1, last_seen_pk: 10, pk: :id})
4141
```
4242
4343
## When to Use KeysetPaginate?

lib/rummage_ecto/custom_hooks/simple_search.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ defmodule Rummage.Ecto.CustomHooks.SimpleSearch do
4444
```elixir
4545
Rummage.Ecto.CustomHooks.SimpleSearch.run(Product, %{available:
4646
%{search_type: :eq,
47-
search_term: true}}
47+
search_term: true}})
4848
```
4949
5050
This can be used for a search with multiple fields as well. Say, we want to
@@ -55,7 +55,7 @@ defmodule Rummage.Ecto.CustomHooks.SimpleSearch do
5555
%{available: %{search_type: :eq,
5656
search_term: true},
5757
%{price: %{search_type: :lt,
58-
search_term: 10.0}}
58+
search_term: 10.0}})
5959
```
6060
6161
## Assoications:

lib/rummage_ecto/hooks/search.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ defmodule Rummage.Ecto.Hooks.Search do
4242
```elixir
4343
Rummage.Ecto.Hooks.Search.run(Product, %{available: %{assoc: [],
4444
search_type: :eq,
45-
search_term: true}}
45+
search_term: true}})
4646
```
4747
4848
This can be used for a search with multiple fields as well. Say, we want to
@@ -55,7 +55,7 @@ defmodule Rummage.Ecto.Hooks.Search do
5555
search_term: true},
5656
%{price: %{assoc: [],
5757
search_type: :lt,
58-
search_term: 10.0}}
58+
search_term: 10.0}})
5959
```
6060
6161
## Assoications:

0 commit comments

Comments
 (0)