summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAy355 <77558710+Ay-355@users.noreply.github.com>2021-11-01 14:27:42 -0700
committerGitHub <noreply@github.com>2021-11-01 22:27:42 +0100
commit9552f2a1fee55280b3bdda18624058aa14c1a369 (patch)
tree71897eacc9ca579d823036b46618b7859a17386c
parent3cdecb5941f6f06bc9d942641622614359bf6980 (diff)
[rust/all] Remove .iter() on array example (#4230)
As of Rust 1.53.0, arrays implement the IntoIterator trait, making .iter() on an array unnecessary
-rw-r--r--de-de/rust-de.html.markdown2
-rw-r--r--el-gr/rust-gr.html.markdown2
-rw-r--r--es-es/rust-es.html.markdown2
-rw-r--r--fr-fr/rust-fr.html.markdown2
-rw-r--r--it-it/rust-it.html.markdown2
-rw-r--r--pt-br/rust-pt.html.markdown3
-rw-r--r--ru-ru/rust-ru.html.markdown2
-rw-r--r--rust.html.markdown2
-rw-r--r--uk-ua/rust-ua.html.markdown2
-rw-r--r--zh-cn/rust-cn.html.markdown2
10 files changed, 10 insertions, 11 deletions
diff --git a/de-de/rust-de.html.markdown b/de-de/rust-de.html.markdown
index faa4ec2b..02bb460a 100644
--- a/de-de/rust-de.html.markdown
+++ b/de-de/rust-de.html.markdown
@@ -255,7 +255,7 @@ fn main() {
// `for` Schleife/Iterationen
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
diff --git a/el-gr/rust-gr.html.markdown b/el-gr/rust-gr.html.markdown
index 79f210ac..4da75b1d 100644
--- a/el-gr/rust-gr.html.markdown
+++ b/el-gr/rust-gr.html.markdown
@@ -242,7 +242,7 @@ fn main() {
// Βρόγχοι `for`
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
diff --git a/es-es/rust-es.html.markdown b/es-es/rust-es.html.markdown
index b43cb815..dc48abf5 100644
--- a/es-es/rust-es.html.markdown
+++ b/es-es/rust-es.html.markdown
@@ -225,7 +225,7 @@ fn main() {
// bucles `for`
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
diff --git a/fr-fr/rust-fr.html.markdown b/fr-fr/rust-fr.html.markdown
index b3675f5b..a61f78be 100644
--- a/fr-fr/rust-fr.html.markdown
+++ b/fr-fr/rust-fr.html.markdown
@@ -221,7 +221,7 @@ fn main() {
    // `for` boucles / itération
    let array = [1, 2, 3];
-    for i in array.iter() {
+    for i in array {
        println!("{}", i);
    }
diff --git a/it-it/rust-it.html.markdown b/it-it/rust-it.html.markdown
index e4b7c33f..df4d6279 100644
--- a/it-it/rust-it.html.markdown
+++ b/it-it/rust-it.html.markdown
@@ -229,7 +229,7 @@ fn main() {
// Ciclo/iterazione con `for`
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
diff --git a/pt-br/rust-pt.html.markdown b/pt-br/rust-pt.html.markdown
index b2bab214..3dd4a8d5 100644
--- a/pt-br/rust-pt.html.markdown
+++ b/pt-br/rust-pt.html.markdown
@@ -234,7 +234,7 @@ fn main() {
// `for` laços de repetição/iteração
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
@@ -329,4 +329,3 @@ mais na página oficial [Rust website](http://rust-lang.org).
No Brasil acompanhe os encontros do [Meetup Rust São Paulo]
(http://www.meetup.com/pt-BR/Rust-Sao-Paulo-Meetup/).
-
diff --git a/ru-ru/rust-ru.html.markdown b/ru-ru/rust-ru.html.markdown
index 9293a40e..d46d301c 100644
--- a/ru-ru/rust-ru.html.markdown
+++ b/ru-ru/rust-ru.html.markdown
@@ -226,7 +226,7 @@ fn main() {
// `for` loops/iteration
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
diff --git a/rust.html.markdown b/rust.html.markdown
index e835de12..9cb44d04 100644
--- a/rust.html.markdown
+++ b/rust.html.markdown
@@ -236,7 +236,7 @@ fn main() {
// `for` loops/iteration
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
diff --git a/uk-ua/rust-ua.html.markdown b/uk-ua/rust-ua.html.markdown
index 4ec2b7c9..422de371 100644
--- a/uk-ua/rust-ua.html.markdown
+++ b/uk-ua/rust-ua.html.markdown
@@ -233,7 +233,7 @@ fn main() {
// Цикл `for`
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}
diff --git a/zh-cn/rust-cn.html.markdown b/zh-cn/rust-cn.html.markdown
index 5d3fc693..b77c9c38 100644
--- a/zh-cn/rust-cn.html.markdown
+++ b/zh-cn/rust-cn.html.markdown
@@ -211,7 +211,7 @@ fn main() {
// `for` 循环
let array = [1, 2, 3];
- for i in array.iter() {
+ for i in array {
println!("{}", i);
}