Skip to content

Commit dd03981

Browse files
DelazJnyalldawson
authored andcommittedJan 18, 2018
Update lpad and rpad functions description
1 parent 6c39212 commit dd03981

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎resources/function_help/json/lpad

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "lpad",
33
"type": "function",
4-
"description": "Returns a string padded to supplied width using a fill character.",
4+
"description": "Returns a string padded on the left to the specified width, using a fill character. If the target width is smaller than the string's length, the string is truncated.",
55
"arguments": [ {"arg":"string","description":"string to pad"},
66
{"arg":"width","description":"length of new string"},
77
{"arg":"fill","description":"character to pad the remaining space with"}
88
],
9-
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"}
9+
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"},
10+
{ "expression":"lpad('Hello', 3, 'x')", "returns":"'Hel'"}
1011
]
1112
}

‎resources/function_help/json/rpad

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "rpad",
33
"type": "function",
4-
"description": "Returns a string padded to supplied width using a fill character.",
4+
"description": "Returns a string padded on the right to the specified width, using a fill character. If the target width is smaller than the string's length, the string is truncated.",
55
"arguments": [
66
{"arg":"string","description":"string to pad"},
77
{"arg":"width","description":"length of new string"},
88
{"arg":"fill","description":"character to pad the remaining space with"}
99
],
10-
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"}
10+
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"},
11+
{ "expression":"rpad('Hello', 3, 'x')", "returns":"'Hel'"}
1112
]
1213
}

0 commit comments

Comments
 (0)
Please sign in to comment.