Skip to content

Commit c77849f

Browse files
Update _docs/tutorials/core/programming_rcl_rclc/index.md
Co-authored-by: Ralph Lange <ralph-lange@users.noreply.github.com>
1 parent daf76fe commit c77849f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • _docs/tutorials/core/programming_rcl_rclc

‎_docs/tutorials/core/programming_rcl_rclc/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ std_msgs__msg__Int32__init(&int_pub_msg);
755755
int_pub_value = 0;
756756
string_pub_value = 0;
757757
```
758-
The first subscription `my_string_sub` is created with the function `rcl_subscription_init` because we change the quality-of-service parameter to 'last-is-best'. That is, a new message will overwrite the older message, if it has not been processed by the subscription. Also the message `string_sub_msg` needs to be initialized.
758+
The first subscription `my_string_sub` is created with the function `rcl_subscription_init` because we change the quality-of-service parameter to 'last-is-best'. That is, a new message will overwrite the older message if it has not been processed by the subscription. Also the message `string_sub_msg` needs to be initialized.
759759
```C
760760
// create subscription 1
761761
rcl_subscription_t my_string_sub = rcl_get_zero_initialized_subscription();

0 commit comments

Comments
 (0)