diff --git a/rclcpp/include/rclcpp/loaned_message.hpp b/rclcpp/include/rclcpp/loaned_message.hpp index 282fb6c801..3fd86f0753 100644 --- a/rclcpp/include/rclcpp/loaned_message.hpp +++ b/rclcpp/include/rclcpp/loaned_message.hpp @@ -40,12 +40,11 @@ class LoanedMessage * The constructor of this class allocates memory for a given message type * and associates this with a given publisher. * - * Given the publisher instance, a case differentiation is being performaned - * which decides whether the underlying middleware is able to allocate the appropriate - * memory for this message type or not. - * In the case that the middleware can not loan messages, the passed in allocator instance - * is being used to allocate the message within the scope of this class. - * Otherwise, the allocator is being ignored and the allocation is solely performaned + * The underlying middleware is queried to determine whether it is able to allocate the + * appropriate memory for this message type or not. + * In the case that the middleware cannot loan messages, the passed in allocator instance + * is used to allocate the message within the scope of this class. + * Otherwise, the allocator is ignored and the allocation is solely performed * in the underlying middleware with its appropriate allocation strategy. * The need for this arises as the user code can be written explicitly targeting a middleware * capable of loaning messages. @@ -53,7 +52,7 @@ class LoanedMessage * a middleware which doesn't support message loaning in which case the allocator will be used. * * \param[in] pub rclcpp::Publisher instance to which the memory belongs - * \param[in] allocator Allocator instance in case middleware can not allocate messages + * \param[in] allocator Allocator instance in case middleware cannot allocate messages * \throws anything rclcpp::exceptions::throw_from_rcl_error can throw. */ LoanedMessage(