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

Typespec variants not kept on separate lines #53

Closed
ehamberg opened this issue Jul 9, 2020 · 0 comments · Fixed by #84
Closed

Typespec variants not kept on separate lines #53

ehamberg opened this issue Jul 9, 2020 · 0 comments · Fixed by #84
Labels
bug Something isn't working

Comments

@ehamberg
Copy link

ehamberg commented Jul 9, 2020

(erlfmt @ e81bcb4)

When splitting the variants of an argument to a function typespec over several lines, it seems that erlfmt may leave more than one case in the last line:

--spec encode(#user_creation_token{} | #user_authentication_token{} | #user_password_reset_token{} | #user_email_verification_token{}) -> binary().
+-spec encode(
+    #user_creation_token{} |
+    #user_authentication_token{} |
+    #user_password_reset_token{} | #user_email_verification_token{}
+) ->
+    binary().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants