From 2b81ed6177976c5ba30b6559c20b7dc37afdffbf Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Wed, 13 May 2026 14:35:35 +0300 Subject: [PATCH] cargo: swap example (#22424) Co-authored-by: Lena Pastwa --- pages/common/cargo.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/cargo.md b/pages/common/cargo.md index ab930891bc..c2c9ebaa2c 100644 --- a/pages/common/cargo.md +++ b/pages/common/cargo.md @@ -28,10 +28,10 @@ `cargo {{[b|build]}} {{[-r|--release]}}` +- Run the built binary (will build it if it's not already built): + +`cargo {{[r|run]}}` + - Build the Rust project in the current directory using the nightly compiler (requires `rustup`): `cargo +nightly {{[b|build]}}` - -- Build using a specific number of threads (default is the number of logical CPUs): - -`cargo {{[b|build]}} {{[-j|--jobs]}} {{number_of_threads}}`