mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-02-03 18:02:27 +02:00
The code block at https://google.github.io/comprehensive-rust/testing/unit-tests.html probably should not be runnable (#498)
This commit is contained in:
parent
ef9d9e3bbe
commit
368f3ba302
@ -2,7 +2,7 @@
|
||||
|
||||
Mark unit tests with `#[test]`:
|
||||
|
||||
```rust,editable
|
||||
```rust,ignore
|
||||
fn first_word(text: &str) -> &str {
|
||||
match text.find(' ') {
|
||||
Some(idx) => &text[..idx],
|
||||
|
Loading…
x
Reference in New Issue
Block a user