1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-15 13:50:27 +02:00
This commit is contained in:
Daniel Gorelik
2023-03-11 04:12:37 -05:00
committed by GitHub
parent ef9d9e3bbe
commit 368f3ba302

View File

@ -2,7 +2,7 @@
Mark unit tests with `#[test]`: Mark unit tests with `#[test]`:
```rust,editable ```rust,ignore
fn first_word(text: &str) -> &str { fn first_word(text: &str) -> &str {
match text.find(' ') { match text.find(' ') {
Some(idx) => &text[..idx], Some(idx) => &text[..idx],