From a97bceb8277885a56ea6d73561fb1aabe4e7782b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20CORNIERE?= Date: Fri, 9 Apr 2021 22:42:59 +0200 Subject: [PATCH] fixed readme out of bounds --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 269804f..5c1629c 100644 --- a/README.md +++ b/README.md @@ -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);