Skip to content

Commit

Permalink
Fix typos (#137)
Browse files Browse the repository at this point in the history
Found via `typos --hidden --format brief`
  • Loading branch information
kianmeng committed Jun 26, 2024
1 parent dce8ab5 commit 9cb1f6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
`NimbleParsec` is a simple and fast library for text-based parser
combinators.

Combinators are composed programatically and compiled into multiple
Combinators are composed programmatically and compiled into multiple
clauses with binary matching. This provides the following benefits:

* Performance: since it compiles to binary matching, it leverages
Expand Down
2 changes: 1 addition & 1 deletion lib/nimble_parsec.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ defmodule NimbleParsec do
**Note:** this can be potentially a very expensive operation
as it executes the given combinator byte by byte until finding
an eventual match or ultimately failing. For example, if you
are looking for an integer, it is preferrable to discard
are looking for an integer, it is preferable to discard
everything that is not an integer
ignore(ascii_string([not: ?0..?9]))
Expand Down
2 changes: 1 addition & 1 deletion test/nimble_parsec_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ defmodule NimbleParsecTest do
assert parse_bytes("abc") == {:ok, ["abc"], "", %{}, {1, 0}, 3}
end

test "fails if input has insufficent bytes" do
test "fails if input has insufficient bytes" do
assert parse_bytes("ab") == {:error, "expected 3 bytes", "ab", %{}, {1, 0}, 0}
end
end
Expand Down

0 comments on commit 9cb1f6c

Please sign in to comment.