mirror of https://github.com/MingweiSamuel/Riven
fixed readme out of bounds
parent
7bbe5fc3aa
commit
a97bceb827
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue