Skip to content

Conversation

@sd-collins
Copy link
Contributor

Closes #12.


if spec.left_adj {
s.push_str(self);
while s.len() < width {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a shame String has no resize() method like Vec does... (but I suppose that wouldn't work well with multi-byte characters)

@tjol tjol merged commit 3d27921 into tjol:main Apr 30, 2025
1 check passed
@tjol
Copy link
Owner

tjol commented Apr 30, 2025

Thanks for implementing this, @sd-collins!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

width not taken into account for string-types

2 participants