Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mixup between lpad/rpad help (fixes #13433)
- Loading branch information
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"name": "lpad", | ||
"name": "rpad", | ||
"type": "function", | ||
"description": "Returns a string padded to supplied width using a fill character.", | ||
"arguments": [ | ||
{"arg":"string","description":"string to pad"}, | ||
{"arg":"width","description":"length of new string"}, | ||
{"arg":"fill","description":"character to pad the remaining space with"} | ||
"arguments": [ {"arg":"string","description":"string to pad"}, | ||
{"arg":"width","description":"length of new string"}, | ||
{"arg":"fill","description":"character to pad the remaining space with"} | ||
], | ||
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"} | ||
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"name": "rpad", | ||
"name": "lpad", | ||
"type": "function", | ||
"description": "Returns a string padded to supplied width using a fill character.", | ||
"arguments": [ {"arg":"string","description":"string to pad"}, | ||
{"arg":"width","description":"length of new string"}, | ||
{"arg":"fill","description":"character to pad the remaining space with"} | ||
"arguments": [ | ||
{"arg":"string","description":"string to pad"}, | ||
{"arg":"width","description":"length of new string"}, | ||
{"arg":"fill","description":"character to pad the remaining space with"} | ||
], | ||
"examples": [ { "expression":"rpad('Hello', 10, 'x')", "returns":"'xxxxxHello'"} | ||
"examples": [ { "expression":"lpad('Hello', 10, 'x')", "returns":"'Helloxxxxx'"} | ||
] | ||
} |
b46cbbe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jef-n this doesn't look quite right - the function names and examples have now been flipped