summaryrefslogtreecommitdiffhomepage
path: root/es-es/groovy-es.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'es-es/groovy-es.html.markdown')
-rw-r--r--es-es/groovy-es.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/es-es/groovy-es.html.markdown b/es-es/groovy-es.html.markdown
index 799fc609..262d5e6a 100644
--- a/es-es/groovy-es.html.markdown
+++ b/es-es/groovy-es.html.markdown
@@ -232,10 +232,12 @@ for (i in array) {
// Iterando sobre 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 ")
/*
Operadores