Browse Source

modules_k/textops: fixed typo in starts_with() example

- Thanks to Inaki for pointing out.
Juha Heinanen 15 năm trước cách đây
mục cha
commit
2759deb340
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
 ...
-if(cmp_str("$rU", "+358"))
+if (starts_with("$rU", "+358"))
 {
     # 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>
 		<programlisting format="linespecific">
 ...
-if(cmp_str("$rU", "+358"))
+if (starts_with("$rU", "+358"))
 {
     # do interesting stuff here
 }