Kaynağa Gözat

textops: typos

Дилян Палаузов 2 yıl önce
ebeveyn
işleme
1f1926f1e2

+ 1 - 1
src/modules/textops/api.h

@@ -66,7 +66,7 @@ typedef int (*bind_textops_f)(textops_api_t *);
 int bind_textops(textops_api_t *);
 
 /*
- * Function to be called direclty from other modules to load
+ * Function to be called directly from other modules to load
  * the textops API.
  */
 inline static int load_textops_api(textops_api_t *tob)

+ 1 - 1
src/modules/textops/doc/textops_admin.xml

@@ -1068,7 +1068,7 @@ append_urihf("CC-Diversion: ", "\r\n");
 		<note>
 		<para>
 			The function is also able to distinguish the compact names. For
-			exmaple <quote>From</quote> will match with <quote>f</quote>
+			example <quote>From</quote> will match with <quote>f</quote>.
 		</para>
 		</note>
 		<para>Meaning of the parameters is as follows:</para>

+ 1 - 1
src/modules/textopsx/api.h

@@ -34,7 +34,7 @@ typedef struct textopsx_binds
 typedef int (*bind_textopsx_f)(textopsx_api_t *);
 
 /*
- * Function to be called direclty from other modules to load
+ * Function to be called directly from other modules to load
  * the textops API.
  */
 inline static int load_textopsx_api(textopsx_api_t *tob)

+ 6 - 6
src/modules/textopsx/doc/functions.xml

@@ -234,7 +234,7 @@ if(fnmatch("$rU", "123*"))
 	    <listitem>
 		<para><emphasis>hf</emphasis> - Header field to be appended. Format: HFNAME [ [IDX] ].
 		If index is not specified new header is inserted at the end of message. The index 1
-		correxponds to the first header.
+		corresponds to the first header.
 		</para>
 	    </listitem>
 	    <listitem>
@@ -268,7 +268,7 @@ append_hf_value("foo[-1]", "$var(Bar)") # try add value to the last header, if n
 	    <listitem>
 		<para><emphasis>hf</emphasis> - Header field to be appended. Format: HFNAME [ [IDX] ].
 		If index is not specified new header is inserted at the top of message. The index 1
-		correxponds to the first header.
+		corresponds to the first header.
 		</para>
 	    </listitem>
 	    <listitem>
@@ -300,7 +300,7 @@ insert_hf_value("foo[1]", "gogo") # try add to the first header
 	    <listitem>
 		<para><emphasis>hf_par</emphasis> - Header field/param to be removed. Format: HFNAME [ [IDX] ] [. PARAM ]
 		If asterisk is specified as index then all values are affected. The index 1
-		correxponds to the first header.
+		corresponds to the first header.
 		</para>
 	    </listitem>
 	</itemizedlist>
@@ -331,7 +331,7 @@ remove_hf_value("foo[*].bar") # for each foo delete bar parameters
 	    <listitem>
 		<para><emphasis>hf_par</emphasis> - Header/param to be removed. Format: HFNAME [ [IDX] ] [. PARAM ]
 		If asterisk is specified as index then all values are affected. The index 1
-		correxponds to the first header.
+		corresponds to the first header.
 		</para>
 	    </listitem>
 	</itemizedlist>
@@ -362,7 +362,7 @@ remove_hf_value2("foo[*].bar") # for each foo delete bar parameters
 			<para><emphasis>hf_para</emphasis> - Header field value / param to be appended.
 				Format: HFNAME [ [IDX] ] [. PARAM]
 		If asterisk is specified as index then all values are affected. The index 1
-		correxponds to the first header.
+		corresponds to the first header.
 		</para>
 	    </listitem>
 	    <listitem>
@@ -399,7 +399,7 @@ assign_hf_value("foo[*].bar", "")  # set empty value (ex. lr)
 	    <listitem>
 		<para><emphasis>hf_para</emphasis> - Header field value / param to be appended. Format: HFNAME [ [IDX] ] [. PARAM]
 		If asterisk is specified as index then all values are affected. The index 1
-		correxponds to the first header.
+		corresponds to the first header.
 		</para>
 	    </listitem>
 	    <listitem>

+ 1 - 1
src/modules/textopsx/textopsx.c

@@ -1213,7 +1213,7 @@ static int delete_value_lump(
 	struct lump *l;
 	/* TODO: check already existing lumps */
 	if(hf && val->s == hf->body.s
-			&& val->len == hf->body.len) /* check if remove whole haeder? */
+			&& val->len == hf->body.len) /* check if remove whole header? */
 		l = del_lump(msg, hf->name.s - msg->buf, hf->len, 0);
 	else
 		l = del_lump(msg, val->s - msg->buf, val->len, 0);