Skip to content

Commit 9cb1f6c

Browse files
authored
Fix typos (#137)
Found via `typos --hidden --format brief`
1 parent dce8ab5 commit 9cb1f6c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
`NimbleParsec` is a simple and fast library for text-based parser
88
combinators.
99

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

1313
* Performance: since it compiles to binary matching, it leverages

lib/nimble_parsec.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ defmodule NimbleParsec do
15201520
**Note:** this can be potentially a very expensive operation
15211521
as it executes the given combinator byte by byte until finding
15221522
an eventual match or ultimately failing. For example, if you
1523-
are looking for an integer, it is preferrable to discard
1523+
are looking for an integer, it is preferable to discard
15241524
everything that is not an integer
15251525
15261526
ignore(ascii_string([not: ?0..?9]))

test/nimble_parsec_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ defmodule NimbleParsecTest do
14741474
assert parse_bytes("abc") == {:ok, ["abc"], "", %{}, {1, 0}, 3}
14751475
end
14761476

1477-
test "fails if input has insufficent bytes" do
1477+
test "fails if input has insufficient bytes" do
14781478
assert parse_bytes("ab") == {:error, "expected 3 bytes", "ab", %{}, {1, 0}, 0}
14791479
end
14801480
end

0 commit comments

Comments
 (0)