fix name of the match_indices method

This commit is contained in:
Rod Elias 2021-01-03 17:27:01 -03:00 committed by GitHub
parent 3111684fa5
commit e74d673cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6753,7 +6753,7 @@ Found a hamlet: Markerville with 45 people
Found a town: Cardston with 3585 people
```
Finally, here is an example where we also use `.matches_indices()`. In this example we put names into a `struct` depending on the number of spaces in the `&str`.
Finally, here is an example where we also use `.match_indices()`. In this example we put names into a `struct` depending on the number of spaces in the `&str`.
```rust
#[derive(Debug)]