forked from mirror/Riven
1
0
Fork 0

fixed readme out of bounds

v/1.x.x
Rémi CORNIERE 2021-04-09 22:42:59 +02:00 committed by Mingwei Samuel
parent 7bbe5fc3aa
commit a97bceb827
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ rt.block_on(async {
.expect("Get champion masteries failed."); .expect("Get champion masteries failed.");
// Print champioon masteries. // 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, println!("{: >2}) {: <9} {: >7} ({})", i + 1,
mastery.champion_id.to_string(), mastery.champion_id.to_string(),
mastery.champion_points, mastery.champion_level); mastery.champion_points, mastery.champion_level);