Skip to content

Commit

Permalink
Fixed typos in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mtvch committed Jan 20, 2024
1 parent 20059f7 commit 15ef15d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end
```

## Key features
1. **Safe** evaluation without acces to other Elixir modules.
1. **Safe** evaluation without access to other Elixir modules.
```elixir
iex> ExPression.eval("exit(self())")
{:error, %ExPression.Error{name: "UndefinedFunctionError", message: "Function 'self/0' was referenced, but was not defined", data: %{function: :self}}}
Expand Down Expand Up @@ -46,7 +46,7 @@ iex> ExPression.eval(~s/{"1": "en", "2": "fr"}[str(int_code)]/, bindings: %{"int
defmodule MyFunctions do
# use $ special symbol in expressions
def handle_special("$", date_str), do: Date.from_iso8601!(date_str)
# Use diff function in expresions
# Use diff function in expressions
def diff(date_1, date_2), do: Date.diff(date_1, date_2)
end

Expand Down

0 comments on commit 15ef15d

Please sign in to comment.