diff --git a/README.md b/README.md index a9de397..b124b78 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/c_src/eimp.c b/c_src/eimp.c index 44135b8..4c23a3d 100644 --- a/c_src/eimp.c +++ b/c_src/eimp.c @@ -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 | @@ -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