1515// specific language governing permissions and limitations 
1616// under the License. 
1717
18+ //! Expr fn module contains the functional definitions for expressions. 
19+ 
1820use  crate :: { aggregate_function,  built_in_function,  lit,  Expr ,  Operator } ; 
1921
2022/// Create a column expression based on a qualified or unqualified column name 
2123pub  fn  col ( ident :  & str )  -> Expr  { 
2224    Expr :: Column ( ident. into ( ) ) 
2325} 
2426
25- /// return  a new expression l <op> r 
27+ /// Return  a new expression l <op> r 
2628pub  fn  binary_expr ( l :  Expr ,  op :  Operator ,  r :  Expr )  -> Expr  { 
2729    Expr :: BinaryExpr  { 
2830        left :  Box :: new ( l) , 
@@ -31,7 +33,7 @@ pub fn binary_expr(l: Expr, op: Operator, r: Expr) -> Expr {
3133    } 
3234} 
3335
34- /// return  a new expression with a logical AND 
36+ /// Return  a new expression with a logical AND 
3537pub  fn  and ( left :  Expr ,  right :  Expr )  -> Expr  { 
3638    Expr :: BinaryExpr  { 
3739        left :  Box :: new ( left) , 
@@ -40,7 +42,7 @@ pub fn and(left: Expr, right: Expr) -> Expr {
4042    } 
4143} 
4244
43- /// return  a new expression with a logical OR 
45+ /// Return  a new expression with a logical OR 
4446pub  fn  or ( left :  Expr ,  right :  Expr )  -> Expr  { 
4547    Expr :: BinaryExpr  { 
4648        left :  Box :: new ( left) , 
@@ -265,7 +267,7 @@ scalar_expr!(Upper, upper, string);
265267scalar_expr ! ( DatePart ,  date_part,  part,  date) ; 
266268scalar_expr ! ( DateTrunc ,  date_trunc,  part,  date) ; 
267269
268- /// returns  an array of fixed size with each argument on it. 
270+ /// Returns  an array of fixed size with each argument on it. 
269271pub  fn  array ( args :  Vec < Expr > )  -> Expr  { 
270272    Expr :: ScalarFunction  { 
271273        fun :  built_in_function:: BuiltinScalarFunction :: Array , 
0 commit comments