This commit is contained in:
Daniel Gorelik
2023-03-11 10:12:37 +01:00
committed by GitHub
parent ef9d9e3bbe
commit 368f3ba302
+1 -1
View File
@@ -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],