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

Fix ASCII Table shrinkage #629

Closed
wants to merge 1 commit into from
Closed

Fix ASCII Table shrinkage #629

wants to merge 1 commit into from

Conversation

noborus
Copy link
Owner

@noborus noborus commented Sep 24, 2024

Fixed the shrinkage of the table starting with Delimiter.

Fixed the shrinkage of the table starting with Delimiter.
Comment on lines +87 to +94
if indexes[0][0] == 0 {
if len(indexes) == 1 {
return src
}
dst = append(dst, src[0:indexes[0][1]]...)
s = indexes[0][1]
indexes = indexes[1:]
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This code is so cryptic 😅

I'm thinking about using this just after you checked indexes is not empty

firstEntry := indexes[0]

Then you could use a better name than s for firstEntry[0]

Also adding comments won't kill you you know.

My message is somehow a "clean your room, mom" post it 😬😂

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thank you for your comment.
It was difficult to understand and had a problem, so I will change it significantly.

@noborus
Copy link
Owner Author

noborus commented Sep 27, 2024

This is closed because it was rebuilt with #631 .

@noborus noborus closed this Sep 27, 2024
@noborus noborus deleted the fix-delimiter-start branch October 30, 2024 08:30
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.

2 participants