Skip to content

Commit 3c0221e

Browse files
authored
Merge pull request #1782 from HosseinAssaran/patch-5
Update unit_testing.md ignore running the last example because it's test
2 parents 64d7c4a + 146af63 commit 3c0221e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testing/unit_testing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
199199
Tests can be marked with the `#[ignore]` attribute to exclude some tests. Or to run
200200
them with command `cargo test -- --ignored`
201201

202-
```rust
202+
```rust,ignore
203203
pub fn add(a: i32, b: i32) -> i32 {
204204
a + b
205205
}

0 commit comments

Comments
 (0)