From 7d65279eabec50bb2c3a73272012f9af1dec8756 Mon Sep 17 00:00:00 2001 From: Marat Date: Fri, 7 Nov 2025 11:51:28 +1300 Subject: [PATCH] fix wording and code examples: illogical paragraph --- modules/25-types/25-literal-types/en/README.md | 4 ++-- modules/25-types/25-literal-types/ru/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/25-types/25-literal-types/en/README.md b/modules/25-types/25-literal-types/en/README.md index f6cd87c..d1fc21d 100644 --- a/modules/25-types/25-literal-types/en/README.md +++ b/modules/25-types/25-literal-types/en/README.md @@ -43,10 +43,10 @@ Using type union, we can get a type that takes only the values we need: type OrderStatus = 'Created' | 'Paid' | 'Shipped' | 'Delivered'; ``` -Literal types can be also combined with any other types. In this way we can get the restriction that all numbers and `false` fall under: +Literal types can be also combined with any other types. In this way we can get the restriction that all statuses and `false` fall under: ```typescript -type NumberFalse = number | false; +type OrderStatusFalse = number | false; ``` ## String enums diff --git a/modules/25-types/25-literal-types/ru/README.md b/modules/25-types/25-literal-types/ru/README.md index 08148c7..46c109c 100644 --- a/modules/25-types/25-literal-types/ru/README.md +++ b/modules/25-types/25-literal-types/ru/README.md @@ -43,10 +43,10 @@ test = 'string'; // Error: Type '"string"' is not assignable to type '"test"'. type OrderStatus = 'Created' | 'Paid' | 'Shipped' | 'Delivered'; ``` -Также литеральные типы могут комбинироваться с любыми другими типами. Так мы можем получить ограничение, под которое попадают все числа и `false`: +Также литеральные типы могут комбинироваться с любыми другими типами. Так мы можем получить ограничение, под которое попадают все статусы и `false`: ```typescript -type NumberFalse = number | false; +type OrderStatusFalse = OrderStatus | false; ``` ## Строковые перечисления (String enums)