Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed Jun 2, 2022
1 parent ec616de commit a710a8c
Show file tree
Hide file tree
Showing 2 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 @@ -74,7 +74,7 @@ Shorthand for `convert(In, Format, [])`.
{error, Reason :: error_reason()}.
```
The function converts incoming data `In` into format `Format`. Note that you don't
have to pass the format of incoming data, becasue it will be detected automatically
have to pass the format of incoming data, because it will be detected automatically
using `get_type/1` function. In the case of an error you can use `Reason` to produce
a human-readable diagnostic text using `format_error/1`.
The function also accepts a proplist of `Options`. Currently available options are:
Expand Down
4 changes: 2 additions & 2 deletions c_src/eimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ int parse_transform(uint8_t *buf, size_t size, transform_s *t)
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data Lenght |
| Data Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| Data |
Expand All @@ -457,7 +457,7 @@ int parse_transform(uint8_t *buf, size_t size, transform_s *t)
where Data is always prefixed with a caller's PID represented in
an external Erlang term format. This PID representation is prefixed
by its length, which is always one byte long (i.e. the maximum lenth
by its length, which is always one byte long (i.e. the maximum length
can only be 255 bytes):
0 1 2 3
Expand Down

0 comments on commit a710a8c

Please sign in to comment.