Skip to content
Permalink
Browse files

fix mixup between lpad/rpad help (fixes #13433)

  • Loading branch information
jef-n committed Sep 26, 2015
1 parent 56b5d4e commit b46cbbe4259b9eecd0b0735f52e26b1ae817352c
Showing with 11 additions and 11 deletions.
  1. +5 −6 resources/function_help/json/lpad
  2. +6 −5 resources/function_help/json/rpad
@@ -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'"}
]
}
@@ -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'"}
]
}

1 comment on commit b46cbbe

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on b46cbbe Sep 26, 2015

@jef-n this doesn't look quite right - the function names and examples have now been flipped

Please sign in to comment.
You can’t perform that action at this time.