Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Week numbers #54

Merged
merged 6 commits into from
Jan 19, 2023
Merged

Conversation

elliotwutingfeng
Copy link
Contributor

@elliotwutingfeng elliotwutingfeng commented Jan 19, 2023

Implements/closes #41.

image

Copy link
Owner

@arthurhenrique arthurhenrique left a comment

Choose a reason for hiding this comment

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

Thanks for your work! ❤️

} else {
" ".to_string()
};
rows[row_counter][column_counter][line] = padding
Copy link
Owner

Choose a reason for hiding this comment

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

I think this could be write using format! macro, its more eficient

);

if week_numbers {
(0..rows[row_counter][column_counter].len()).for_each(|line| {
Copy link
Owner

Choose a reason for hiding this comment

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

I'll refactor further it to casual for loop, its more idiomatic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably could shift it into month_printable

@arthurhenrique arthurhenrique merged commit d478c5a into arthurhenrique:main Jan 19, 2023
@elliotwutingfeng elliotwutingfeng deleted the week_numbers branch January 19, 2023 13:02
@elliotwutingfeng
Copy link
Contributor Author

Just realised I introduced a bug; the current date is off by 1. Looking into it now...

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.

Week numbers
2 participants