diff --git a/README.md b/README.md index 5ab8a1b..88a5573 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ For a fully working implementation, please have a look at [this demo node](https ```c++ auto pub = node->create_publisher("/chatter", 1); // Ask the publisher to loan a String message -auto loaned_msg = pub_->borrow_loaned_message(); +auto pod_loaned_msg = pub_->borrow_loaned_message(); pod_loaned_msg.get().data = "Hello World"; // Return ownership of that string message pod_pub_->publish(std::move(pod_loaned_msg)); @@ -114,7 +114,7 @@ Thus, in order to make our demo work with zero copy, we can alternatively send a ```c++ auto pub = node->create_publisher("/float", 1); // Ask the publisher to loan a Float64 message -auto loaned_msg = pub_->borrow_loaned_message(); +auto pod_loaned_msg = pub_->borrow_loaned_message(); pod_loaned_msg.get().data = 123.456f; // Return ownership of that Float64 message pod_pub_->publish(std::move(pod_loaned_msg));