Skip to content

Commit b6fdc68

Browse files
authored
Fix: theory text error (#365)
* fix: theory text error A text error has been corrected. * fix: theory text error (en) A text error has been corrected. * fix: theory text error (es) A text error has been corrected. * Fix: theory text Typo in the text. * Fix: theory (en) Typo in the text. * Fix: theory text (es) Typo in the text.
1 parent dfa94f0 commit b6fdc68

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

modules/40-define-functions/100-define/en/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ showGreeting(); // => 'Hello, Hexlet!'
4040

4141
Unlike normal data, functions perform actions, so their names almost always have to be verbs: "build something", "draw something", "open something", etc.
4242

43-
Anything described below the indented function name is called the body of the function. It can contain any code. Consider it a small independent program, a set of whatever statements are needed. The body is executed when the function is called. And each function call executes the body independently of other calls.
43+
Everything that is described in curly braces after the function name is called the body of the function. It can contain any code. Consider it a small independent program, a set of whatever statements are needed. The body is executed when the function is called. And each function call executes the body independently of other calls.
4444

4545
The body of the function can be empty:
4646

modules/40-define-functions/100-define/es/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ showGreeting(); // => '¡Hola, Hexlet!'
4646

4747
A diferencia de los datos normales, las funciones realizan acciones, por lo que sus nombres casi siempre deben ser verbos: "construir algo", "dibujar algo", "abrir algo".
4848

49-
Todo lo que se describe debajo del nombre de la función con sangría se llama cuerpo de la función. Dentro del cuerpo se puede describir cualquier código. Se puede decir que es un pequeño programa independiente, un conjunto de instrucciones arbitrarias.
49+
Todo lo que se describe entre llaves después del nombre de la función se denomina cuerpo de la función. Dentro del cuerpo se puede describir cualquier código. Se puede decir que es un pequeño programa independiente, un conjunto de instrucciones arbitrarias.
5050

5151
El cuerpo se ejecuta cuando se inicia la función. Y cada llamada a la función inicia el cuerpo independientemente de otras llamadas.
5252

modules/40-define-functions/100-define/ru/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ showGreeting(); // => 'Hello, Hexlet!'
4646

4747
В отличие от обычных данных, функции выполняют действия, поэтому их имена практически всегда должны быть глаголами: «построить что-то», «нарисовать что-то», «открыть что-то».
4848

49-
Все, что описывается ниже имени функции с отступом, называется телом функции. Внутри тела можно описывать любой код. Можно сказать, что это маленькая самостоятельная программа, набор произвольных инструкций.
49+
Все, что описывается в фигурных скобках после имени функции, называется телом функции. Внутри тела можно описывать любой код. Можно сказать, что это маленькая самостоятельная программа, набор произвольных инструкций.
5050

5151
Тело выполняется в тот момент, когда запускается функция. Причем каждый вызов функции запускает тело независимо от других вызовов.
5252

modules/40-define-functions/200-return/en/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Self-check. What will this code print?
124124
// Definition
125125
function run()
126126
{
127-
// or return 5 + 5
127+
// Return
128128
return 5;
129129
return 10;
130130
}

modules/40-define-functions/200-return/es/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Para poner a prueba tus conocimientos, intenta responder esta pregunta. ¿Qué i
131131
// Definición
132132
function ejecutar()
133133
{
134-
// o return 5 + 5
134+
// Return
135135
return 5;
136136
return 10;
137137
}

modules/40-define-functions/200-return/ru/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function doubleFive()
131131
// Определение
132132
function run()
133133
{
134-
// или return 5 + 5
134+
// Возврат
135135
return 5;
136136
return 10;
137137
}

0 commit comments

Comments
 (0)