diff --git a/modules/25-strings/20-string-concatenation/ru/README.md b/modules/25-strings/20-string-concatenation/ru/README.md index 7c977b6a..44fe8c70 100644 --- a/modules/25-strings/20-string-concatenation/ru/README.md +++ b/modules/25-strings/20-string-concatenation/ru/README.md @@ -25,10 +25,10 @@ print_r('Hello' . ', ' . 'World!'); ```text 'Hello' . ', ' . 'World!' -└──┬──┘ └┬┘ └──┬───┘ - └────┬───┘ │ - 'Hello, ' . 'World!' - └──────┬───────┘ +└──┬──┘ └┬─┘ └──┬───┘ + └───┬───┘ │ + 'Hello, ' . 'World!' + └─────┬──────┘ 'Hello, World!' ``` diff --git a/modules/35-calling-functions/135-calling-functions-default-params/ru/EXERCISE.md b/modules/35-calling-functions/135-calling-functions-default-params/ru/EXERCISE.md index dbe89819..3f12fae2 100644 --- a/modules/35-calling-functions/135-calling-functions-default-params/ru/EXERCISE.md +++ b/modules/35-calling-functions/135-calling-functions-default-params/ru/EXERCISE.md @@ -9,11 +9,11 @@ Каждое значение выводится на отдельной строке. ```text -distance ──────┐ - ├──→ fuel ──────┐ -fuelConsumption ───┘ ├──→ tripCost ──────┐ - │ ├──→ perPerson -fuelPrice ─────────────────────┘ │ - │ -passengers ────────────────────────────────────────┘ +distance ───────┐ + ├──→ fuel ──┐ +fuelConsumption ┘ │ + ├──→ tripCost ──┐ +fuelPrice ──────────────────┘ │ + ├──→ perPerson +passengers ─────────────────────────────────┘ ``` diff --git a/modules/48-conditionals/50-else-if/ru/README.md b/modules/48-conditionals/50-else-if/ru/README.md index 0dbd5a47..0f274ef8 100644 --- a/modules/48-conditionals/50-else-if/ru/README.md +++ b/modules/48-conditionals/50-else-if/ru/README.md @@ -55,19 +55,21 @@ print_r(getTypeOfSentence('No!') . "\n"); // => Sentence is exclamation Теперь все условия выстроились в единую конструкцию. Ключевое слово `elseif` означает «если не выполнено предыдущее условие, но выполнено текущее». ```text - ┌─────────────────┐ - │ условие 1? │ - └────┬────────┬───┘ - true │ │ false - ↓ ↓ -┌──────────┐ ┌─────────────────┐ -│ тело if │ │ условие 2? │ -└──────────┘ └────┬────────┬───┘ - true │ │ false - ↓ ↓ - ┌────────────┐ ┌──────────┐ - │тело elseif │ │ тело else│ - └────────────┘ └──────────┘ + ┌────────────┐ + │ условие 1? │ + └──────┬─────┘ + ┌─────────┴──────────┐ +true │ │ false + ↓ ↓ +┌─────────┐ ┌────────────┐ +│ тело if │ │ условие 2? │ +└─────────┘ └──────┬─────┘ + ┌──────┴───────┐ + true │ │ false + ↓ ↓ + ┌─────────────┐ ┌───────────┐ + │ тело elseif │ │ тело else │ + └─────────────┘ └───────────┘ ``` Логика функции устроена так. Если последний символ `?`, возвращается `'question'`. Если последний символ `!`, возвращается `'exclamation'`. Во всех остальных случаях возвращается `'normal'`.