changeset 2315:ae56e4613280

Corrected language in njs.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 25 Dec 2018 17:27:37 +0300
parents bff6da10f841
children 3a8d96efece6
files xml/en/docs/njs/changes.xml xml/en/docs/njs/reference.xml xml/index.xml
diffstat 3 files changed, 27 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/njs/changes.xml
+++ b/xml/en/docs/njs/changes.xml
@@ -9,7 +9,7 @@
 <article name="Changes"
         link="/en/docs/njs/changes.html"
         lang="en"
-        rev="12"
+        rev="13"
         toc="no">
 
 <section id="njs0.2.7" name="Changes with 0.2.7">
@@ -87,14 +87,14 @@ fixed type of iteration variable in for-
 <listitem>
 <para>
 Bugfix:
-fixed building on paltforms without librt.
+fixed building on platforms without librt.
 </para>
 </listitem>
 
 <listitem>
 <para>
 Bugfix:
-miscellaneous additional bugs have been fixed.
+miscellaneous bugs have been fixed.
 </para>
 </listitem>
 
@@ -240,7 +240,7 @@ for <literal>object_value</literal> type
 <listitem>
 <para>
 Bugfix:
-miscellaneous additional bugs have been fixed.
+miscellaneous bugs have been fixed.
 </para>
 </listitem>
 
@@ -379,7 +379,7 @@ for non-object properties
 <listitem>
 <para>
 Bugfix:
-miscellaneous additional bugs have been fixed.
+miscellaneous bugs have been fixed.
 </para>
 </listitem>
 
@@ -552,7 +552,7 @@ fixed <literal>String.slice()</literal> 
 <listitem>
 <para>
 Bugfix:
-miscellaneous additional bugs have been fixed.
+miscellaneous bugs have been fixed.
 </para>
 </listitem>
 
@@ -709,7 +709,7 @@ fixed autocompletion for global objects.
 <listitem>
 <para>
 Bugfix:
-miscellaneous additional bugs have been fixed.
+miscellaneous bugs have been fixed.
 </para>
 </listitem>
 
@@ -1013,7 +1013,7 @@ fixed <literal>njs_vm_external_bind()</l
 <listitem>
 <para>
 Bugfix:
-miscellaneous additional bugs have been fixed.
+miscellaneous bugs have been fixed.
 </para>
 </listitem>
 
--- a/xml/en/docs/njs/reference.xml
+++ b/xml/en/docs/njs/reference.xml
@@ -9,7 +9,7 @@
 <article name="Reference"
         link="/en/docs/njs/reference.html"
         lang="en"
-        rev="18">
+        rev="19">
 
 <section id="summary">
 
@@ -489,19 +489,18 @@ of the given <literal>object</literal>
 <section id="string" name="String">
 
 <para>
-There are two types of strings:
-a <literal>Unicode string</literal> (default) and
-a <literal>byte string</literal>.
+There are two types of strings in njs: a Unicode string (default) and
+a byte string.
 </para>
 
 <para>
-A <literal>Unicode string</literal> corresponds to an ECMAScript string
+A Unicode string corresponds to an ECMAScript string
 which contains Unicode characters.
 </para>
 
 <para>
-<literal>Byte strings</literal> contain a sequence of bytes.
-They are used to serialize Unicode strings
+Byte strings contain a sequence of bytes
+and are used to serialize Unicode strings
 to external data and deserialize from external sources.
 For example, the <link id="string_toutf8">toUTF8()</link> method serializes
 a Unicode string to a byte string using UTF8 encoding:
@@ -537,7 +536,8 @@ first, it should be converted to a byte 
 | <value>string</value>, <value>encoding</value>)</literal></tag-name>
 <tag-desc>
 (njs specific) Creates a byte string either from an array that contains octets,
-or from an encoded string (0.2.3).
+or from an encoded string
+(<link doc="../njs/changes.xml" id="njs0.2.3">0.2.3</link>).
 The encoding can be
 <literal>hex</literal>,
 <literal>base64</literal>, and
@@ -576,7 +576,7 @@ Returns a string from one or more Unicod
 Returns a string representing one Unicode code unit
 at the specified <literal>index</literal>;
 empty string if index is out of range.
-The <literal>index</literal> can be integer
+The index can be an integer
 between 0 and 1-less-than the length of the string.
 If no index is provided, the default is <literal>0</literal>,
 so the first character in the string is returned.
@@ -585,7 +585,7 @@ so the first character in the string is 
 <tag-name id="string_codepointat"><literal>String.prototype.CodePointAt(<value>position</value>)</literal></tag-name>
 <tag-desc>
 Returns a number representing the code point value of the character
-at the given index;
+at the given <literal>position</literal>;
 <literal>undefined</literal> if there is no element at position.
 <example>
 >> 'ABCD'.codePointAt(3);
@@ -652,7 +652,7 @@ true
 <value>fromIndex</value>])</literal></tag-name>
 <tag-desc>
 Returns the position of the first occurrence
-of the <literal>searchString</literal>
+of the <literal>searchString</literal>.
 The search is started at <literal>fromIndex</literal>.
 Returns <value>-1</value> if the value is not found.
 The <literal>fromIndex</literal> is an integer,
@@ -705,8 +705,8 @@ Matches a string against a <literal>rege
 [, <value>string</value>])</literal></tag-name>
 <tag-desc>
 Returns a string of a specified <literal>length</literal>
-with the pad <literal>string</literal> applied
-to the end of the specified string (0.2.3).
+with the pad <literal>string</literal> applied to the end of the specified
+string (<link doc="../njs/changes.xml" id="njs0.2.3">0.2.3</link>).
 <example>
 >> '1234'.padEnd(8, 'abcd')
 '1234abcd'
@@ -717,8 +717,8 @@ to the end of the specified string (0.2.
 [, <value>string</value>])</literal></tag-name>
 <tag-desc>
 Returns a string of a specified <literal>length</literal>
-with the pad <literal>string</literal> applied
-to the start of the specified string (0.2.3).
+with the pad <literal>string</literal> applied to the start of the specified
+string (<link doc="../njs/changes.xml" id="njs0.2.3">0.2.3</link>).
 <example>
 >> '1234'.padStart(8, 'abcd')
 'abcd1234'
@@ -727,7 +727,7 @@ to the start of the specified string (0.
 
 <tag-name id="string_repeat"><literal>String.prototype.repeat(<value>number</value>)</literal></tag-name>
 <tag-desc>
-Returns a string 
+Returns a string
 with the specified <literal>number</literal> of copies of the string.
 <example>
 >> 'abc'.repeat(3)
@@ -897,8 +897,8 @@ Removes whitespaces from both ends of a 
 
 <tag-name id="encodeuri"><literal>encodeURI(<value>URI</value>)</literal></tag-name>
 <tag-desc>
-encodes a URI by replacing each instance of certain characters by
-one, two, three, or four escape sequences
+Encodes a URI by replacing each instance of certain characters
+by one, two, three, or four escape sequences
 representing the UTF-8 encoding of the character
 <example>
 >> encodeURI('012αβγδ')
--- a/xml/index.xml
+++ b/xml/index.xml
@@ -17,7 +17,7 @@ mainline version has been released.
 <event date="2018-12-25">
 <para>
 <link doc="en/docs/njs/index.xml">njs-0.2.7</link>
-version has been released, featuring rest parameters syntax,
+version has been released, featuring rest parameters syntax
 and <link doc="en/docs/njs/changes.xml" id="njs0.2.7">more</link>.
 </para>
 </event>