Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: theory text error #365

Merged
merged 6 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/40-define-functions/100-define/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ showGreeting(); // => 'Hello, Hexlet!'

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

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.
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.

The body of the function can be empty:

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/100-define/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

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".

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.
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.

Check warning on line 49 in modules/40-define-functions/100-define/es/README.md

View workflow job for this annotation

GitHub Actions / main

[LanguageTool] reported by reviewdog 🐶 Possible spelling mistake found. (EN_MULTITOKEN_SPELLING_TWO[2]) Suggestions: `El Cerro` Rule: https://community.languagetool.org/rule/show/EN_MULTITOKEN_SPELLING_TWO?lang=en-US&subId=2 Category: MULTITOKEN_SPELLING Raw Output: modules/40-define-functions/100-define/es/README.md:49:233: Possible spelling mistake found. (EN_MULTITOKEN_SPELLING_TWO[2]) Suggestions: `El Cerro` Rule: https://community.languagetool.org/rule/show/EN_MULTITOKEN_SPELLING_TWO?lang=en-US&subId=2 Category: MULTITOKEN_SPELLING

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

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/100-define/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ showGreeting(); // => 'Hello, Hexlet!'

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/200-return/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
// Definition
function run()
{
// or return 5 + 5
// Return

Check warning on line 127 in modules/40-define-functions/200-return/en/README.md

View workflow job for this annotation

GitHub Actions / main

[LanguageTool] reported by reviewdog 🐶 Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE) Suggestions: `Return` Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US Category: MISC Raw Output: modules/40-define-functions/200-return/en/README.md:127:7: Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE) Suggestions: `Return` Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US Category: MISC
return 5;
return 10;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/200-return/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Para poner a prueba tus conocimientos, intenta responder esta pregunta. ¿Qué i
// Definición
function ejecutar()
{
// o return 5 + 5
// Return
return 5;
return 10;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/200-return/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function doubleFive()
// Определение
function run()
{
// или return 5 + 5
// Возврат
return 5;
return 10;
}
Expand Down