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

Fix typos

Found via `codespell -L hte`
Kian-Meng Ang 2 лет назад
Родитель
Сommit
98153e27fb
5 измененных файлов с 7 добавлено и 7 удалено
  1. 1 1
      LICENSE
  2. 1 1
      index.html
  3. 1 1
      man/nitro.js.htm
  4. 3 3
      man/nitro_n2o.htm
  5. 1 1
      src/nitro_conv.erl

+ 1 - 1
LICENSE

@@ -12,7 +12,7 @@ ACTIONS AGAINST OUR TERRITORIAL INTEGRITY, CULTURAL DIVERSITY BY
 APPLYING MILITARY INVASIONS, ECONOMICAL WARS, HUMANITARIAN DISASTERS,
 ARTFICIAL HOLODOMORS, GENOCIDE, RAPING, LOOTING, ROBBERIES, SPREADING
 FAKE INFORMATION, AND OTHER CONTEMPORARY WEAPONS OF WAR AT SCALE
-OR IN INVIDIVUAL MANNER.
+OR IN INDIVIDUAL MANNER.
 
 YOU CANNOT USE THIS SOFTWARE BY ANY MEANS IN INTEREST OF LEGAL
 ENTITIES OR INDIVIDUALS WHO IS SUPPORTING NOW OR WAS SUPPORTING

+ 1 - 1
index.html

@@ -48,7 +48,7 @@
     <section>
         <a name="endpoint"></a><h3>API</h3>
         <ul><li><b><a href="man/nitro.htm">nitro</a></b> — The public Nitrogen Web Framework API</li>
-            <li><b><a href="man/nitro_n2o.htm">nitro_n2o</a></b> — Implemention as N2O protocol</li>
+            <li><b><a href="man/nitro_n2o.htm">nitro_n2o</a></b> — Implementation as N2O protocol</li>
         </ul>
     </section>
     <section>

+ 1 - 1
man/nitro.js.htm

@@ -51,7 +51,7 @@
     <h4>qn(id)</h4>
     <p>Creates new DOM element.</p>
     <h4>querySource(name)</h4>
-    <p>Retrives <b>value</b> fields of the given field.</p>
+    <p>Retrieves <b>value</b> fields of the given field.</p>
     <h4>validateSources(list)</h4>
     <p>Validates each <b>value</b> filed for the given list of fields.</p>
     <h4>$io.do</h4>

+ 3 - 3
man/nitro_n2o.htm

@@ -65,8 +65,8 @@
   </section>
   <section>
     <h3>PICKLE</h3>
-    <p>PICKLE message sends to server prerendered (by server) encripted message.
-       These messages hold #ev record with callee information (encripted).
+    <p>PICKLE message sends to server prerendered (by server) encrypted message.
+       These messages hold #ev record with callee information (encrypted).
        Such pickled messages can prolongate expiration field in session token (renewed)
        by updating client token on each UI request (tracking user activity) when
        n2o application variable <b>nitro_prolongate</b> equals <b>true</b>.</p>
@@ -87,7 +87,7 @@
   </section>
   <section>
     <h3>DIRECT</h3>
-    <p>Direct message sends data without any convertation or encription or session logic.</p>
+    <p>Direct message sends data without any conversion or encryption or session logic.</p>
     <div>
       <figure>
         <code>

+ 1 - 1
src/nitro_conv.erl

@@ -95,7 +95,7 @@ html_encode([H | T]) ->
         $' -> "&#39;" ++ html_encode(T);
         $& -> "&amp;" ++ html_encode(T);
         BigNum when is_integer(BigNum) andalso BigNum > 255 ->
-            %% Any integers above 255 are converted to their HTML encode equivilant,
+            %% Any integers above 255 are converted to their HTML encode equivalent,
             %% Example: 7534 gets turned into &#7534;
             [$&, $# | nitro:to_list(BigNum)] ++
                 ";" ++ html_encode(T);