mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-27 03:16:33 +00:00
fixed readme out of bounds
This commit is contained in:
parent
7bbe5fc3aa
commit
a97bceb827
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ rt.block_on(async {
|
|||
.expect("Get champion masteries failed.");
|
||||
|
||||
// Print champioon masteries.
|
||||
for (i, mastery) in masteries[..10].iter().enumerate() {
|
||||
for (i, mastery) in masteries.iter().take(10).enumerate() {
|
||||
println!("{: >2}) {: <9} {: >7} ({})", i + 1,
|
||||
mastery.champion_id.to_string(),
|
||||
mastery.champion_points, mastery.champion_level);
|
||||
|
|
Loading…
Reference in a new issue