Skip to content

Commit

Permalink
[docs] Add <Arc> to node field in RepublisherNode (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
miferco97 authored Nov 15, 2023
1 parent 9fb29f2 commit 533abc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/writing-your-first-rclrs-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use std::sync::Arc;
use std_msgs::msg::String as StringMsg;

struct RepublisherNode {
node: rclrs::Node,
node: Arc<rclrs::Node>,
_subscription: Arc<rclrs::Subscription<StringMsg>>,
data: Option<StringMsg>,
}
Expand Down Expand Up @@ -114,7 +114,7 @@ use std::sync::{Arc, Mutex}; // (1)
use std_msgs::msg::String as StringMsg;

struct RepublisherNode {
node: rclrs::Node,
node: Arc<rclrs::Node>,
_subscription: Arc<rclrs::Subscription<StringMsg>>,
data: Arc<Mutex<Option<StringMsg>>>, // (2)
}
Expand Down

0 comments on commit 533abc6

Please sign in to comment.