nargo fmt: Undesirable line break before {
when comments are present in function signature
#3310
Labels
bug
Something isn't working
Aim
When comments are included within the function signature, specifically in the parameter list, the code formatter introduces an unwanted line break before the opening curly brace {. This might affect the code's visual alignment and readability.
Expected Behavior
The opening curly brace { should ideally be on the same line as the last parameter or return type to maintain a consistent and clean code structure, like so:
Bug
Undesirable line break before
{
when comments are present in function signatureTo Reproduce
Installation Method
Compiled from source
Nargo Version
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: