summaryrefslogtreecommitdiffhomepage
path: root/pt-br
diff options
context:
space:
mode:
authorKamil Łopuszański <kam.wopush314@gmail.com>2017-10-04 16:15:38 +0200
committerKamil Łopuszański <kam.wopush314@gmail.com>2017-10-04 16:15:38 +0200
commit9afd4fd1bd7ea9fb32dd3957c07380d3879da753 (patch)
tree60b05538bf0c017c629f505822c41beaa78077d7 /pt-br
parentc7036d6e89852d6ff561f53dcebab2b036d39361 (diff)
[groovy] 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