Skip to content

Commit

Permalink
ARROW-12716: [C++] Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Jun 28, 2021
1 parent c02033a commit 940e332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/kernels/scalar_string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,7 @@ struct AsciiPadTransform : public StringTransformBase {
int64_t left = 0;
int64_t right = 0;
if (PadLeft && PadRight) {
// If odd number of spaces, put them on the left
// If odd number of spaces, put the extra space on the left
right = spaces / 2;
left = spaces - right;
} else if (PadLeft) {
Expand Down Expand Up @@ -2839,7 +2839,7 @@ struct Utf8PadTransform : public StringTransformBase {
int64_t left = 0;
int64_t right = 0;
if (PadLeft && PadRight) {
// If odd number of spaces, put them on the left
// If odd number of spaces, put the extra space on the left
right = spaces / 2;
left = spaces - right;
} else if (PadLeft) {
Expand Down

0 comments on commit 940e332

Please sign in to comment.