Skip to content

Commit 9682c13

Browse files
committed
Fix typo
1 parent d509620 commit 9682c13

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Decode bencoded data to `bvalue`.
103103
104104
namespace bc = bencode;
105105
106-
// decode the data to a descriptor_table
107106
bc::bvalue b = bc::decode_value("l3:fooi2ee");
108107
109108
// check if the first list element is a string
@@ -137,7 +136,7 @@ bc::encode_to(std::cout, b);
137136
Retrieve data from a bvalue.
138137
139138
``` cpp
140-
auto b = bc::bvalue(bv::type::list, {1, 2, 3, 4, 5, 6, 7, 8, 9});
139+
auto b = bc::bvalue(bc::type::list, {1, 2, 3, 4, 5, 6, 7, 8, 9});
141140
142141
// return a list of integers as a byte vector, throws on error
143142
auto bytes = get_as<std::vector<std::byte>>(b);

0 commit comments

Comments
 (0)