docs: fix typos in docs

This commit is contained in:
Zach Daniel 2023-08-22 19:56:13 -04:00
parent b9601d5936
commit 9642a368f2

View file

@ -15,7 +15,7 @@ Ash Double Entry is implemented as a set of Ash resource extensions. You build t
#### Example #### Example
```elixir ```elixir
defmodule YourApp.Leger.Account do defmodule YourApp.Ledger.Account do
use Ash.Resource, use Ash.Resource,
data_layer: AshPostgres.DataLayer, data_layer: AshPostgres.DataLayer,
extensions: [AshDoubleEntry.Account] extensions: [AshDoubleEntry.Account]
@ -66,7 +66,7 @@ end
#### Example #### Example
```elixir ```elixir
defmodule YourApp.Transfer do defmodule YourApp.Ledger.Transfer do
use Ash.Resource, use Ash.Resource,
data_layer: AshPostgres.DataLayer, data_layer: AshPostgres.DataLayer,
extensions: [AshDoubleEntry.Transfer] extensions: [AshDoubleEntry.Transfer]
@ -206,7 +206,7 @@ YourApp.Ledger.Transfer
#### Check an account's balance #### Check an account's balance
```elixir ```elixir
YourApp.Leger.Account YourApp.Ledger.Account
|> YourApp.Ledger.get!(account_id, load: :balance) |> YourApp.Ledger.get!(account_id, load: :balance)
|> Map.get(:balance) |> Map.get(:balance)
# => Decimal.new("20") # => Decimal.new("20")