summaryrefslogtreecommitdiffhomepage
path: root/pt-br
diff options
context:
space:
mode:
authorAndre Polykanine A.K.A. Menelion ElensĂșlĂ« <andre@oire.org>2017-10-08 15:44:58 +0300
committerGitHub <noreply@github.com>2017-10-08 15:44:58 +0300
commit39665aaad785115a023b8195c50819eca73b758a (patch)
tree10a5a3b769a4bc5c6dcc16b1f6861a35e93ceb8c /pt-br
parentbb842f0e9605ef823e720ca4a2eb641a34c281b6 (diff)
parent9afd4fd1bd7ea9fb32dd3957c07380d3879da753 (diff)
Merge pull request #2886 from banan314/master
[groovy/many] small fix in iteration over a map
Diffstat (limited to 'pt-br')
-rw-r--r--pt-br/groovy-pt.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/pt-br/groovy-pt.html.markdown b/pt-br/groovy-pt.html.markdown
index 25e123c0..aed23df1 100644
--- a/pt-br/groovy-pt.html.markdown
+++ b/pt-br/groovy-pt.html.markdown
@@ -226,10 +226,12 @@ for (i in array) {
//Itera sobre um mapa
def map = ['name':'Roberto', 'framework':'Grails', 'language':'Groovy']
-x = 0
+x = ""
for ( e in map ) {
x += e.value
+ x += " "
}
+assert x.equals("Roberto Grails Groovy ")
/*
Operadores