morrySnow commented on code in PR #1874: URL: https://github.com/apache/doris-website/pull/1874#discussion_r1922999785
########## docs/sql-manual/sql-functions/scalar-functions/string-functions/ltrim.md: ########## @@ -24,31 +24,51 @@ specific language governing permissions and limitations under the License. --> -## ltrim -### Description -#### Syntax +## Description -`VARCHAR ltrim(VARCHAR str[, VARCHAR rhs])` +The LTRIM function is used to remove consecutive spaces or specified characters from the left side (leading) of a string. +## Syntax -When the 'rhs' parameter is not present, remove the continuous spaces that appear from the beginning of the 'str' parameter. Otherwise, remove 'rhs'. +```sql +ltrim( <str> [, <trim_chars> ] ) Review Comment: 1. 函数名使用大写 ```suggestion LTRIM( <str> [, <trim_chars> ] ) ``` ########## docs/sql-manual/sql-functions/scalar-functions/string-functions/reverse.md: ########## @@ -24,59 +24,50 @@ specific language governing permissions and limitations under the License. --> -## reverse -### description -#### Syntax +## Description + +The REVERSE function is used to reverse the order of characters in a string or the order of elements in an array. + +## Syntax ```sql -VARCHAR reverse(VARCHAR str) -ARRAY<T> reverse(ARRAY<T> arr) +reverse( seq ) Review Comment: ```suggestion REVERSE( <seq> ) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org