Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Oct 17, 2024
1 parent c967e2f commit 00127a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/docs/migration_1.0/C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct CustomStruct {
};

// One needs to implement __zenoh_serialize_with_serializer and __zenoh_deserialize_with_deserializer
// in the same namespace where CustomStruct is defined.
// in the same namespace, where CustomStruct is defined.
// To simplify implementation users are allowed to use
// serialize_with_serializer and deserialize_with_deserializer functions defined in zenoh::ext::detail namespace.
bool __zenoh_serialize_with_serializer(zenoh::ext::Serializer& serializer, const CustomStruct& s, ZResult* err) {
Expand Down Expand Up @@ -226,7 +226,7 @@ while (true) {
if (std::has_alternative<Reply>(res)) {
const auto& sample = std::get<Reply>(res).get_ok();
std::cout << "Received ('" << sample.get_keyexpr().as_string_view() << "' : '"
<< sample.get_payload().as_string() << "')\n";
<< sample.get_payload().as_string() << "')\n";
} else if (std::get<channels::RecvError>(res) == channels::RecvError::Z_NODATA) {
// try_recv is non-blocking call, so may fail to return a reply if the Fifo buffer is empty
std::cout << ".";
Expand Down

0 comments on commit 00127a9

Please sign in to comment.