show line numbers in conde snippets

This commit is contained in:
Marcello 2023-10-20 18:22:46 +02:00
parent cd1df0e376
commit 255a68d673
82 changed files with 1249 additions and 1251 deletions

View file

@ -2,7 +2,7 @@
## Test Functions
```rs
```rs linenums="1"
// module code here
#[cfg(test)]
@ -33,7 +33,7 @@ mod tests {
## Controlling How Tests Are Run
```sh
```sh linenums="1"
cargo test -- --test-threads=<number> # run tests in parallel (1 no parallelism)
cargo test -- --show-output # show content printed in stdout in each test
cargo test <test_name> # run only a specific test