Skip to content

Commit

Permalink
return: add Spanish translation (#15359)
Browse files Browse the repository at this point in the history
* return: add Spanish translation

* Update return.md

---------

Co-authored-by: Sebastiaan Speck <[email protected]>
  • Loading branch information
kant and sebastiaanspeck authored Dec 30, 2024
1 parent f0dde99 commit f39d254
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages.es/common/return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# return

> Sale de una función o un script si se ejecuta con `source`.
> Más información: <https://www.gnu.org/software/bash/manual/bash.html#index-return>.
- Sale prematuramente de una función:

`{{nombre_de_la_función}}() { {{echo "Se ha alcanzado"}}; return; {{echo "No se ha alcanzado"}}; }`

- Especifica el valor de retorno de la función:

`{{nombre_de_la_función}}() { return {{N}}; }`

0 comments on commit f39d254

Please sign in to comment.