Skip to content

Commit ff6c059

Browse files
Update README.md
1 parent 0087f39 commit ff6c059

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ Fine provides implementations for the following types:
170170
> talking about UTF-8 encoded strings or arbitrary binaries.
171171
>
172172
> However, when dealing with large binaries, it is preferable for the
173-
> NIF to accept `ErlNifBinary` or `std::string_view` as arguments and
173+
> NIF to accept `std::string_view` (or `ErlNifBinary`) as arguments and
174174
> deal with the raw data explicitly, which is zero-copy. That said,
175-
> keep in mind that `ErlNifBinary` and `std::string_view` are
176-
> read-only and only valid during the NIF call lifetime.
175+
> keep in mind that those objects are read-only pointers to the data
176+
> and they are valid only during the NIF call lifetime.
177177
>
178178
> Since Elixir binaries are not zero-terminated, the use of
179179
> `std::string` is recommended when interfacing with C APIs, although

0 commit comments

Comments
 (0)