Skip to content

Conversation

jfwm2
Copy link
Contributor

@jfwm2 jfwm2 commented Oct 31, 2017

Not sure if that change is scala-compliant, but if im<0, we should use the absolute value of im to avoid printing a leading minus sign.

@SethTisue
Copy link
Member

shorter if instead of adding an abs call, you change the if to read (if (im < 0) "" else "+"). nbd either way I guess?

@jfwm2
Copy link
Contributor Author

jfwm2 commented Oct 31, 2017

Indeed shorter!

@SethTisue SethTisue merged commit 0930dd2 into scala:master Oct 31, 2017
@SethTisue
Copy link
Member

good catch, thanks!

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