diff options
author | Ay355 <77558710+Ay-355@users.noreply.github.com> | 2021-11-01 14:27:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 22:27:42 +0100 |
commit | 9552f2a1fee55280b3bdda18624058aa14c1a369 (patch) | |
tree | 71897eacc9ca579d823036b46618b7859a17386c /pt-br/rust-pt.html.markdown | |
parent | 3cdecb5941f6f06bc9d942641622614359bf6980 (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
Diffstat (limited to 'pt-br/rust-pt.html.markdown')
-rw-r--r-- | pt-br/rust-pt.html.markdown | 3 |
1 files changed, 1 insertions, 2 deletions
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/). - |