Просмотр исходного кода

chore: updates README.md and README-ru.md

e22m4u 1 год назад
Родитель
Сommit
8d855995bb
2 измененных файлов с 8 добавлено и 9 удалено
  1. 3 3
      README-ru.md
  2. 5 6
      README.md

+ 3 - 3
README-ru.md

@@ -24,9 +24,9 @@ npm install @e22m4u/js-service
 
 Класс `Service` удобен, когда приложение имеет единственную
 точку входа, которая создается оператором `new`. Например,
-если такой точкой является класс `Application`, то мы могли
-бы унаследовать его от класса `Service`, и обращаться
-к другим сервисам методом `getService` не заботясь о создании
+если такой точкой является класс `App`, то мы могли бы
+унаследовать его от класса `Service`, и обращаться к другим
+сервисам методом `getService` не заботясь о создании
 и хранении их экземпляров.
 
 Кроме того, если другие сервисы так же наследуют от класса

+ 5 - 6
README.md

@@ -22,12 +22,11 @@ which can be used separately or together.
 - `ServiceContainer` - classic version of the service locator
 - `Service` - hides the creation of the container and its distribution
 
-The `Service` class is convenient when the application has
-a single entry point created by the `new` operator. For example,
-if such a point is the `Application` class, we could inherit
-it from the `Service` class and access other services using
-the `getService` method without worrying about creating and
-storing their instances.
+The `Service` class is convenient when the application has a single
+entry point created by the `new` operator. For example, if such
+a point is the `App` class, we could inherit it from the `Service`
+class and access other services using the `getService` method
+without worrying about creating and storing their instances.
 
 Moreover, if other services also inherit from the `Service` class,
 they can refer to each other using the `getService` method,