summaryrefslogtreecommitdiffhomepage
path: root/pt-br/groovy-pt.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'pt-br/groovy-pt.html.markdown')
-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