mirror of
https://github.com/Dhghomon/easy_rust
synced 2024-11-17 15:29:51 +00:00
fix name of the match_indices method
This commit is contained in:
parent
3111684fa5
commit
e74d673cb2
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user