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

fmt: simplify const name formatting #21143

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Mar 29, 2024

Splits up a refactoring from a fix since the fix would include a logic update.
The change simplifies code block for const name for matting. It might be a little safer as well, since it removes and unguarded array access.

mod_prefix := vals[vals.len - 2]

@ttytm ttytm marked this pull request as draft March 29, 2024 19:31
@ttytm ttytm force-pushed the fmt/simplify-const-name-formatting branch from f1d90a0 to bfd4f05 Compare March 29, 2024 19:33
@ttytm ttytm marked this pull request as ready for review March 29, 2024 19:33
@ttytm ttytm force-pushed the fmt/simplify-const-name-formatting branch from bfd4f05 to c5540ce Compare March 30, 2024 00:44
@spytheman spytheman merged commit a63a733 into vlang:master Mar 30, 2024
42 checks passed
@ttytm ttytm deleted the fmt/simplify-const-name-formatting branch March 30, 2024 14:28
@ttytm ttytm restored the fmt/simplify-const-name-formatting branch March 30, 2024 14:33
@ttytm ttytm deleted the fmt/simplify-const-name-formatting branch April 1, 2024 15:19
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.

None yet

2 participants