From a5ebc6445dede4868464f6db1bdc6b3b96faaf7a Mon Sep 17 00:00:00 2001 From: Esteve Fernandez <33620+esteve@users.noreply.github.com> Date: Wed, 26 Jun 2024 15:57:58 +0200 Subject: [PATCH] Update docs/writing_a_simple_publisher_and_subscriber.md --- docs/writing_a_simple_publisher_and_subscriber.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing_a_simple_publisher_and_subscriber.md b/docs/writing_a_simple_publisher_and_subscriber.md index 7f8c956d..3559be3c 100644 --- a/docs/writing_a_simple_publisher_and_subscriber.md +++ b/docs/writing_a_simple_publisher_and_subscriber.md @@ -46,7 +46,7 @@ from building packages for [Python](https://docs.ros.org/en/humble/Tutorials/Beg First, you'll need to create a standard [cargo](https://doc.rust-lang.org/cargo/) package: -``` +```console cargo new rust_pubsub && cd rust_pubsub ``` In the [`Cargo.toml`](https://doc.rust-lang.org/book/ch01-03-hello-cargo.html) file, add a dependency on `rclrs = "*"` and `std_msgs = "*"` by editing this file. Your `Cargo.toml` could now look like this: