Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #137

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading