Skip to content

Commit

Permalink
Further cleanup on the README
Browse files Browse the repository at this point in the history
  • Loading branch information
jimporter committed Feb 22, 2024
1 parent 5af2806 commit 8ca4cc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ auto data = bencode::decode_all("i42e");
auto value = std::get<bencode::integer>(data);
```

`decode` also has an overload that takes an iterator pair:
`decode_all` also has an overload that takes an iterator pair:

```c++
auto data = bencode::decode_all(foo.begin(), foo.end());
Expand Down Expand Up @@ -104,7 +104,7 @@ If the buffer holding the bencoded data is stable (i.e. won't change or be
destroyed until you're done working with the parsed representation), you can
decode the data as a *view* on the buffer to save memory. This results in all
parsed strings being nothing more than pointers pointing to slices of your
buffer. Simply append `_view` to the functions/types to take advantage of this:
buffer. Simply add `_view` to the functions/types to take advantage of this:
```c++
std::string buf = "3:foo";
Expand Down

0 comments on commit 8ca4cc8

Please sign in to comment.