summaryrefslogtreecommitdiffhomepage
path: root/ca-es/groovy-ca.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'ca-es/groovy-ca.html.markdown')
-rw-r--r--ca-es/groovy-ca.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/ca-es/groovy-ca.html.markdown b/ca-es/groovy-ca.html.markdown
index 57674970..f0a9adbe 100644
--- a/ca-es/groovy-ca.html.markdown
+++ b/ca-es/groovy-ca.html.markdown
@@ -233,10 +233,12 @@ for (i in array) {
//Itera per un 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 ")
/*
Operadors