Skip to content

Fix padding direction in str.ljust and str.rjust#3504

Merged
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:switch-str-just
Mar 23, 2026
Merged

Fix padding direction in str.ljust and str.rjust#3504
chrisnovakovic merged 1 commit intothought-machine:masterfrom
chrisnovakovic:switch-str-just

Conversation

@chrisnovakovic
Copy link
Copy Markdown
Contributor

str.ljust should left-justify str in the return value, and str.rjust should right-justify str in the return value - in other words, str.ljust should right-pad str, and str.rjust should left-pad str.

`str.ljust` should left-justify `str` in the return value, and
`str.rjust` should right-justify `str` in the return value - in other
words, `str.ljust` should right-pad `str`, and `str.rjust` should
left-pad `str`.
@chrisnovakovic chrisnovakovic merged commit e8e8a9e into thought-machine:master Mar 23, 2026
8 of 12 checks passed
@chrisnovakovic chrisnovakovic deleted the switch-str-just branch March 23, 2026 16:44
DuBento pushed a commit to DuBento/please that referenced this pull request Mar 27, 2026
…#3504)

`str.ljust` should left-justify `str` in the return value, and
`str.rjust` should right-justify `str` in the return value - in other
words, `str.ljust` should right-pad `str`, and `str.rjust` should
left-pad `str`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants