Skip to content

Commit

Permalink
refactor: update description to specify padding character length
Browse files Browse the repository at this point in the history
  • Loading branch information
richtia committed Aug 16, 2022
1 parent b82446b commit e9ed571
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/functions_string.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,12 @@ scalar_functions:
-
name: center
description: >-
Center the input string by padding the sides with the given `character` until the specified
Center the input string by padding the sides with a single `character` until the specified
`length` of the string has been reached. By default, if the `length` will be reached with
an uneven number of padding, the extra padding will be applied to the right side.
The side with extra padding can be controlled with the `padding` option.
Behavior is undefined if the number of characters passed to the `character` argument is not 1.
impls:
- args:
- name: padding
Expand All @@ -397,7 +399,7 @@ scalar_functions:
- value: i32
name: "length"
description: "The length of the output string."
- value: "varchar<L2>"
- value: "varchar<1>"
name: "character"
description: "The character to use for padding."
return: "varchar<L1>"
Expand Down

0 comments on commit e9ed571

Please sign in to comment.