Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach authored Mar 31, 2020
1 parent 13b82ff commit 2876b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ Using compare operators (`<`, `=`, `>`) directly with two decimals may not retur
the correct result. Instead use comparison functions.

```elixir
iex> D.cmp(-1, 0)
iex> D.compare(-1, 0)
:lt
iex> D.cmp(0, -1)
iex> D.compare(0, -1)
:gt
iex> D.cmp(0, 0)
iex> D.compare(0, 0)
:eq

iex> D.equal?(-1, 0)
Expand Down

0 comments on commit 2876b33

Please sign in to comment.