From b4488e721fba376e936b5361f73180c2c9f00553 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 3 Sep 2025 11:27:01 -0700 Subject: [PATCH] rust: Fix doctests for lib.rs. Shell commands should not be tested as if they are Rust source code. --- rust/pspp/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rust/pspp/src/lib.rs b/rust/pspp/src/lib.rs index 78e0237eea..2afa720483 100644 --- a/rust/pspp/src/lib.rs +++ b/rust/pspp/src/lib.rs @@ -19,14 +19,14 @@ //! - Use the following command to download PSPP source code from `crates.io` //! and build and install it: //! -//! ``` +//! ```text //! cargo install pspp //! ``` //! //! - Clone a local copy of this repository and build and install it from there, //! with: can instead `cd` into `rust/pspp` in the source tree and run: //! -//! ``` +//! ```text //! git clone git://git.sv.gnu.org/pspp //! cd pspp/rust/pspp //! cargo install --path . @@ -40,7 +40,7 @@ //! //! To uninstall PSPP, run: //! -//! ``` +//! ```text //! cargo uninstall pspp //! ``` //! @@ -48,7 +48,7 @@ //! //! After installing PSPP using one of the methods above, run it with: //! -//! ``` +//! ```text //! pspp //! ``` //! @@ -63,7 +63,7 @@ //! To build the manual, install [mdBook] using its [instructions] then, from //! the root of a checked-out copy of this repository, build the manual with: //! -//! ``` +//! ```text //! (cd rust/doc && mdbook build) //! ``` //! -- 2.30.2