Jelajahi Sumber

modules_k/textops: fixed typo in starts_with() example

- Thanks to Inaki for pointing out.
Juha Heinanen 15 tahun lalu
induk
melakukan
2759deb340
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      modules_k/textops/README
  2. 1 1
      modules_k/textops/doc/textops_admin.xml

+ 1 - 1
modules_k/textops/README

@@ -882,7 +882,7 @@ if(cmp_istr("$rU@you", "kamailio@YOU"))
 
 
    Example 1.33. starts_with usage
    Example 1.33. starts_with usage
 ...
 ...
-if(cmp_str("$rU", "+358"))
+if (starts_with("$rU", "+358"))
 {
 {
     # do interesting stuff here
     # do interesting stuff here
 }
 }

+ 1 - 1
modules_k/textops/doc/textops_admin.xml

@@ -1224,7 +1224,7 @@ if(cmp_istr("$rU@you", "kamailio@YOU"))
 		<title><function>starts_with</function> usage</title>
 		<title><function>starts_with</function> usage</title>
 		<programlisting format="linespecific">
 		<programlisting format="linespecific">
 ...
 ...
-if(cmp_str("$rU", "+358"))
+if (starts_with("$rU", "+358"))
 {
 {
     # do interesting stuff here
     # do interesting stuff here
 }
 }