diff --git a/docs/writing-your-first-rclrs-node.md b/docs/writing-your-first-rclrs-node.md index b6b1dadd1..335d50499 100644 --- a/docs/writing-your-first-rclrs-node.md +++ b/docs/writing-your-first-rclrs-node.md @@ -47,7 +47,7 @@ use std::sync::Arc; use std_msgs::msg::String as StringMsg; struct RepublisherNode { - node: rclrs::Node, + node: Arc, _subscription: Arc>, data: Option, } @@ -114,7 +114,7 @@ use std::sync::{Arc, Mutex}; // (1) use std_msgs::msg::String as StringMsg; struct RepublisherNode { - node: rclrs::Node, + node: Arc, _subscription: Arc>, data: Arc>>, // (2) }