Skip to content

Commit

Permalink
Add Arc::clone to the Readme tutorial to fix compile error (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbone authored Dec 30, 2023
1 parent 9082816 commit 812b91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/writing-your-first-rclrs-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fn main() -> Result<(), rclrs::RclrsError> {
republisher_other_thread.republish()?;
}
});
rclrs::spin(republisher.node)
rclrs::spin(Arc::clone(&republisher.node))
}
```

Expand Down

0 comments on commit 812b91a

Please sign in to comment.