1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-03 09:57:30 +02:00
This commit is contained in:
Daniel Gorelik 2023-03-11 04:12:37 -05:00 committed by GitHub
parent ef9d9e3bbe
commit 368f3ba302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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],