Skip to content

Commit ab5d7dc

Browse files
committed
Updated method name
1 parent bd08d2b commit ab5d7dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_es/tour/named-arguments.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ En la invocación de métodos y funciones se puede usar el nombre de las variabl
1919
// Imprime "John Smith"
2020
imprimirNombre(nombre = "John", apellido = "Smith")
2121
// Imprime "John Smith"
22+
imprimirNombre(apellido = "Smith", nombre = "John")
2223
// Imprime "John Smith"
2324

2425
Note que una vez que se utilizan parámetros nombrados en la llamada, el orden no importa, mientras todos los parámetros sean nombrados. Esta característica funciona bien en conjunción con valores de parámetros por defecto:

0 commit comments

Comments
 (0)