Browse Source

chore: updates readme

e22m4u 1 year ago
parent
commit
856e7ea108
2 changed files with 8 additions and 8 deletions
  1. 4 4
      README-ru.md
  2. 4 4
      README.md

+ 4 - 4
README-ru.md

@@ -100,7 +100,7 @@ const {format} = require('@e22m4u/js-format');
 | `%v`      | см. ниже                                     |
 | `%l`      | см. ниже                                     |
 
-### %v
+#### %v
 
 Строки оборачиваются в кавычки, остальные примитивы приводятся
 к строке, а для более сложных типов выводится имя конструктора.
@@ -136,7 +136,7 @@ format('It is %v', MyClass);       // It is MyClass
 format('It is %v', new MyClass()); // It is MyClass (instance)
 ```
 
-### %l
+#### %l
 
 Вывод элементов массива через запятую.
 
@@ -147,9 +147,9 @@ format('An array of %l', ['foo', 10, true]);
 
 Элементы массива приводятся к строке по логике спецификатора `%v`
 
-## Errorf
+## `Errorf` class
 
-Конструктор класса `Errorf` передает аргументы функции `format`
+Конструктор класса передает аргументы функции `format`
 для формирования сообщения об ошибке.
 
 Пример:

+ 4 - 4
README.md

@@ -100,7 +100,7 @@ argument.
 | `%v`      | see below                                |
 | `%l`      | see below                                |
 
-### %v
+#### %v
 
 Strings are wrapped in quotes, other primitives are converted
 to strings, and for more complex types the constructor name
@@ -137,7 +137,7 @@ format('It is %v', MyClass);       // It is MyClass
 format('It is %v', new MyClass()); // It is MyClass (instance)
 ```
 
-### %l
+#### %l
 
 Outputs array elements separated by commas.
 
@@ -149,9 +149,9 @@ format('An array of %l', ['foo', 10, true]);
 Array elements are converted to strings following the logic
 of the `%v` specifier.
 
-## Errorf
+## `Errorf` class
 
-The `Errorf` class constructor passes arguments to the format function
+The class constructor passes arguments to the format function
 to form an error message.
 
 Example: