Skip to content

Commit 812b91a

Browse files
authored
Add Arc::clone to the Readme tutorial to fix compile error (#356)
1 parent 9082816 commit 812b91a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing-your-first-rclrs-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn main() -> Result<(), rclrs::RclrsError> {
212212
republisher_other_thread.republish()?;
213213
}
214214
});
215-
rclrs::spin(republisher.node)
215+
rclrs::spin(Arc::clone(&republisher.node))
216216
}
217217
```
218218

0 commit comments

Comments
 (0)