Skip to content

Commit 18a1c72

Browse files
committed
Doc update
1 parent 2bf2993 commit 18a1c72

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/ref/cbor/cbor.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## cbor extension
22

33
The cbor extension implements decode from and encode to the IETF standard [Concise Binary Object Representation (CBOR)](http://cbor.io/).
4-
It supports decoding a packed CBOR value to an unpacked (json) value and
5-
encoding an unpacked (json) value to a packed CBOR value.
4+
It supports decoding a CBOR value to a basic_json value and
5+
encoding a basic_json value to a CBOR value.
66

77
[decode_cbor](decode_cbor.md)
88

@@ -107,11 +107,11 @@ int main()
107107
}
108108
)");
109109

110-
// Encoding an unpacked (json) value to a packed CBOR value
110+
// Encoding a basic_json value to a CBOR value
111111
std::vector<uint8_t> data;
112112
cbor::encode_cbor(j1, data);
113113

114-
// Decoding a packed CBOR value to an unpacked (json) value
114+
// Decoding a CBOR value to a basic_json value
115115
ojson j2 = cbor::decode_cbor<ojson>(data);
116116
std::cout << "(1)\n" << pretty_print(j2) << "\n\n";
117117

@@ -127,7 +127,7 @@ int main()
127127
}
128128
std::cout << std::endl;
129129

130-
// Querying a packed CBOR value for a nested data item with jsonpointer
130+
// Querying a CBOR value for a nested data item with jsonpointer
131131
std::error_code ec;
132132
auto const& rated = jsonpointer::get(j2, "/reputons/0/rated", ec);
133133
if (!ec)

examples/src/cbor_examples.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ void cbor_reputon_example()
100100
}
101101
)");
102102

103-
// Encoding an unpacked (json) value to a packed CBOR value
103+
// Encoding a basic_json value to a CBOR value
104104
std::vector<uint8_t> data;
105105
cbor::encode_cbor(j1, data);
106106

107-
// Decoding a packed CBOR value to an unpacked (json) value
107+
// Decoding a CBOR value to a basic_json value
108108
ojson j2 = cbor::decode_cbor<ojson>(data);
109109
std::cout << "(1)\n" << pretty_print(j2) << "\n\n";
110110

@@ -120,7 +120,7 @@ void cbor_reputon_example()
120120
}
121121
std::cout << std::endl;
122122

123-
// Querying a packed CBOR value for a nested data item with jsonpointer
123+
// Querying a CBOR value for a nested data item with jsonpointer
124124
std::error_code ec;
125125
auto const& rated = jsonpointer::get(j2, "/reputons/0/rated", ec);
126126
if (!ec)

0 commit comments

Comments
 (0)