[ 
https://issues.apache.org/jira/browse/JEXL-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15441147#comment-15441147
 ] 

Dmitri Blinov commented on JEXL-208:
------------------------------------

Sorry I don't know which diff format to use, this is the one I got from github
{code}
diff --git a/src/site/xdoc/reference/syntax.xml 
b/src/site/xdoc/reference/syntax.xml
index c6a85b2..cc034b8 100644
--- a/src/site/xdoc/reference/syntax.xml
+++ b/src/site/xdoc/reference/syntax.xml
@@ -538,7 +538,7 @@
                         It also checks whether any collection, set or map (on 
keys) contains a value or not; in that case, it behaves
                         as an "in" operator.
                         Note that arrays and user classes exposing a public 
'contains' method will allow their instances
-                        to behave has right-hand side operands of this 
operator.
+                        to behave as right-hand side operands of this operator.
                         <code> "a" =~ ["a","b","c","d","e",f"]</code> returns 
<code>true</code>.
                     </td>
                 </tr>
@@ -552,7 +552,7 @@
                         It also checks whether any collection, set or map (on 
keys) does not contain a value; in that case, it behaves
                         as "not in" operator.
                         Note that arrays and user classes exposing a public 
'contains' method will allow their instances
-                        to behave has right-hand side operands of this 
operator.
+                        to behave as right-hand side operands of this operator.
                         <code> "a" !~ ["a","b","c","d","e",f"]</code> returns 
<code>true</code>.
                     </td>
                 </tr>
@@ -562,7 +562,7 @@
                         The <code>=^</code> operator is a short-hand for the 
'startsWith' method.
                         For example, <code> "abcdef" =^ "abc" </code> returns 
<code>true</code>.
                         Note that through duck-typing, user classes exposing a 
public 'startsWith' method will allow their instances
-                        to behave has left-hand side operands of this operator.
+                        to behave as left-hand side operands of this operator.
                     </td>
                 </tr>
                 <tr>
@@ -577,7 +577,7 @@
                     <td>The <code>=$</code> operator is a short-hand for the 
'endsWith' method.
                         For example, <code> "abcdef" =$ "def" </code> returns 
<code>true</code>.
                         Note that through duck-typing, user classes exposing 
an 'endsWith' method will allow their instances
-                        to behave has left-hand side operands of this operator.
+                        to behave as left-hand side operands of this operator.
                     </td>
                 </tr>
                 <tr>
{code}

> Documentation typos/inconsistencies
> -----------------------------------
>
>                 Key: JEXL-208
>                 URL: https://issues.apache.org/jira/browse/JEXL-208
>             Project: Commons JEXL
>          Issue Type: Bug
>         Environment: (Chrome MacOSX)
>            Reporter: Joe Tom
>            Priority: Trivial
>             Fix For: 3.1
>
>
> Noticed on 
> https://commons.apache.org/proper/commons-jexl/reference/syntax.html that 
> there are two operands that are defined then in the examples reversed.
> Starts With=^
> The syntactically ... "abcdef" ^= "abc" returns true. Note that through 
> duck-typing, user classes exposing a public 'startsWith' method will allow 
> their instances to behave has left-hand-size operands of this operator.
> AND
> Not Starts With!^
> This is the negation of the 'starts with' operator. a ^! "abc" is ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to